This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| javascript:(function(){for(var a,b="0".charCodeAt(),c="z".charCodeAt(),d="",e=0;10>e;e+=1)d+=String.fromCharCode(b+(Math.random()*(c-b)|0));a=d;var f=document.createElement("span");f.style.opacity=0;f.textContent=a;document.body.appendChild(f);var g=document.createRange();g.selectNode(f);getSelection().removeAllRanges();getSelection().addRange(g);document.execCommand("copy");document.body.removeChild(f); | |
| alert("\u4ee5\u4e0b\u306e\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u30af\u30ea\u30c3\u30d7\u30dc\u30fc\u30c9\u306b\u30b3\u30d4\u30fc\u3057\u307e\u3057\u305f\u3002\n\n"+a);})() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| for($i=1;$i<101;$i++){echo@['Fizz'][$i%3].@['Buzz'][$i%5]?:$i,"\n";} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| let calendar = Calendar(identifier: .gregorian) | |
| let birthDate = DateComponents(calendar: calendar, year: 1983, month: 4, day: 15).date! | |
| let now = DateComponents(calendar: calendar, year: 2017, month: 1, day: 12).date! | |
| let age = calendar.dateComponents([.year], from: birthDate, to: now).year! | |
| age // -> 33 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| let calendar = Calendar(identifier: .gregorian) | |
| calendar.date(bySettingHour: 0, minute: 0, second: 0, of: Date()) // Nov 7, 2016, 12:00 AM |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| javascript:new function(){document.write('<pre>',JSON.stringify(JSON.parse(document.body.textContent),null,' '),'</pre>')} |