🏳️⚧️
This file contains 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
var plugins = navigator.plugins; | |
var hasUnity = false; | |
var hasJavaApplet = false; | |
var hasFlash = false; | |
var hasSilverlight = false; | |
for (var i = 0; i < plugins.length; i++) { | |
//console.log("%c"+plugins[i].name+"%c "+plugins[i].description, "font-weight: 800", "font-weight: default"); | |
if(plugins[i].name==="Unity Player") hasUnity = true; | |
if(plugins[i].name==="Java Applet Plug-in") hasJavaApplet = true; | |
if(plugins[i].name==="Shockwave Flash") hasFlash = true; |
This file contains 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
import com.google.common.base.Charsets; | |
import com.google.common.cache.CacheBuilder; | |
import com.google.common.cache.CacheLoader; | |
import com.google.common.cache.LoadingCache; | |
import com.google.common.io.Files; | |
import com.google.common.io.Resources; | |
import com.google.gson.Gson; | |
import com.google.gson.GsonBuilder; | |
import com.google.gson.JsonParseException; | |
import java.io.File; |
This file contains 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
/*\ | |
| Faking JavaScript syntactic sugar | |
| | |
| Feel free to fork this to add more information! | |
| | |
| Remember to utilize ES6 things, because why not? | |
| It's standardized! | |
\_ | |
| Contents: | |
| |
This file contains 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
// ==UserScript== | |
// @name Comment Sentiment | |
// @namespace http://joshuapullen.com/ | |
// @version 0.1 | |
// @description Colors comments based on whether they are mostly positive of negative | |
// @author Josh Pullen | |
// @match https://scratch.mit.edu/projects/* | |
// @match https://scratch.mit.edu/users/* | |
// @match http://scratch.mit.edu/projects/* | |
// @match http://scratch.mit.edu/users/* |
This file contains 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
[img]http://i.cubeupload.com/yeITn7.png[/img] | |
[url=http://liam4.github.io/programming-language-thing/codemirror/]Use it online[/url] [b]if on Firefox Nightly[/b] (or some other great ES6+ browser) | |
[url=https://github.com/liam4/programming-language-thing]Learn more[/url] about [big]P[/big]rogramming [big]L[/big]anguage [big]T[/big]hing! | |
Please give input :P | |
It's really, really in-development. Expect lots to change. :) |
This file contains 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
/* Notes: **READ ALL OF THESE** | |
Original source of the program is here: | |
https://scratch.mit.edu/discuss/post/1868091/ | |
I've slightly modified the code (pretty-printed, renamed a couple variables, | |
etc. - don't forget to read these notes! - but the old code is still intact | |
here. If you're curious about what the original entirely non-modified code | |
was though don't hesitate to open that link. :P |
This file contains 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
var urls = { | |
proxy: (u) => `//crossorigin.me/${u}`, | |
proxy: (u) => u, | |
annotations: (id) => urls.proxy(`https://www.youtube.com/annotations_invideo?video_id=${id}`), | |
isYouTube: (u) => !!u.match('https://www.youtube.com/'), | |
getYouTubeID(u) { | |
var res = u.match(/\?v=([^$&]+)/); | |
return res ? res[1] : ''; | |
} | |
}; |
This file contains 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
// str should be a great big binary string, e.g. '01101010' | |
// the string gets split into 8 bits of ascii codes, and then | |
// the characters are gotten from those | |
str = str.split('').filter(c => c === '0' || c === '1').join('') | |
new Array(str.length / 8) | |
.fill('') | |
.map((_,i) => str.slice(i*8,i*8+8)) | |
.map((s) => String.fromCharCode(parseInt(s, 2))) |
This file contains 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
var fcc=String.fromCharCode;var a=(([] + [])/([]/[])).toString() + "\x61\x6C\x61\x6E\x27";var b=!([] + ![])[!{}/[]/{}] + "\x20\x68\x34\x78\x6F\x72\x73";var c=(typeof [[(([] + [])/([]/[]))-2][0]][undefined]);var out=fcc(c[0].charCodeAt(0)-11).toUpperCase()+c[0]+fcc(c[1].charCodeAt(0)+5)+b[0];out=out+b[4]+a[1].toLowerCase()+a[0].toLowerCase()+b[8]+fcc(c[4].charCodeAt(0)+14)+b[5]+c[3]+b[9],out=out+b[4]+fcc(c[0].charCodeAt(0)-11).toUpperCase()+a[1]+fcc(Math.pow(10,2)+18)+a[1]+b[10].toUpperCase()+fcc(Math.pow(9,2)+18)+b[9]+c[5]+fcc(Math.pow(12,2)-32)+b[0],out=out+b[4]+b[5]+b[6]+b[7]+b[8]+b[9],alert(out); |
OlderNewer