Skip to content

Instantly share code, notes, and snippets.

View GeorgeWL's full-sized avatar

George W Langham GeorgeWL

View GitHub Profile
@GeorgeWL
GeorgeWL / jsFuck.js
Created October 16, 2024 17:05
JSFuck
const getWord = ()=> (
([] + {})[+!![] + [+[]]]).toUpperCase() +
// 'J' == '[object Object]'[10]
(![] + [])[+!![]] +
// 'a' == 'false'[1]
'v' +
// 'v'
(![] + [])[+!![]] +
// 'a' == 'false'[1]
const getWord = ()=> (
([] + {})[+!![] + [+[]]]).toUpperCase() +
// 'J' == '[object Object]'[10]
(![] + [])[+!![]] +
// 'a' == 'false'[1]
'v' +
// 'v'
(![] + [])[+!![]] +
// 'a' == 'false'[1]

GitHub Flavored Markdown

View the source of this content.

Let's get the whole "linebreak" thing out of the way. The next paragraph contains two phrases separated by a single newline character:

Roses are red Violets are blue

Keybase proof

I hereby claim:

  • I am georgewl on github.
  • I am georgewl (https://keybase.io/georgewl) on keybase.
  • I have a public key ASDVUOLl3uozbFbn-XbIUBHsOt4Z5J37HczTM3iqLGTMKQo

To claim this, I am signing this object:

@GeorgeWL
GeorgeWL / hello_world.java
Created July 28, 2019 16:27
hello world.java
/* HelloWorld.java
*/
public class HelloWorld
{
public static void main(String[] args) {
System.out.println("Hello World!");
}
}
@GeorgeWL
GeorgeWL / mobx.ts
Created April 11, 2019 12:08
mobx.ts
export Class TestStore{
private isTest:boolean=false;
@computed
public get IsTest():boolean {
return this.isTest;
}
@action setTest(state: boolean){
this.isTest = state;
}
auto-generated
@GeorgeWL
GeorgeWL / Seed.json
Created April 27, 2017 14:37
E.g seed code, creates giant valleys and mountains
{"useCaves":true,"useStrongholds":true,"useVillages":true,"useMineShafts":true,"useTemples":true,"useRavines":true,"useMonuments":true,"useMansions":true,"useLavaOceans":false,"useWaterLakes":true,"useLavaLakes":true,"useDungeons":true,"fixedBiome":-3,"biomeSize":4,"seaLevel":63,"riverSize":4,"waterLakeChance":4,"lavaLakeChance":80,"dungeonChance":8,"dirtSize":33,"dirtCount":10,"dirtMinHeight":0,"dirtMaxHeight":255,"gravelSize":33,"gravelCount":8,"gravelMinHeight":0,"gravelMaxHeight":255,"graniteSize":33,"graniteCount":10,"graniteMinHeight":0,"graniteMaxHeight":80,"dioriteSize":33,"dioriteCount":10,"dioriteMinHeight":0,"dioriteMaxHeight":80,"andesiteSize":33,"andesiteCount":10,"andesiteMinHeight":0,"andesiteMaxHeight":80,"coalSize":17,"coalCount":20,"coalMinHeight":0,"coalMaxHeight":128,"ironSize":9,"ironCount":20,"ironMinHeight":0,"ironMaxHeight":64,"goldSize":9,"goldCount":2,"goldMinHeight":0,"goldMaxHeight":32,"redstoneSize":8,"redstoneCount":8,"redstoneMinHeight":0,"redstoneMaxHeight":16,"diamondSize":8,"
@GeorgeWL
GeorgeWL / audioLib.js
Created March 27, 2017 14:39
abstracted version of code seems to not work for web audio
function audioLoader(fileDirectory) {
var soundObj = {};
soundObj.fileDirectory = fileDirectory; //my guess is it's here the issue
var getSound = new XMLHttpRequest();
getSound.open("GET", soundObj.fileDirectory, true);
// library object
getSound.responseType = "arraybuffer";
// a buffer stores data temporarily in the browser, for low-latency, prevents having to wait for load to play sound
getSound.onload = function() {
@GeorgeWL
GeorgeWL / html4-html5.md
Last active March 22, 2017 21:58
for my report I need to detail the tools considered. Does this little bit make sense?

#3.1 Tools Considered

Below are the development tools and languages which shall be considered for the development

###HTML4

HTML4 is no longer supported by all major browsers, except for limited backwards compatibility, it has been superseded almost entirely by the newer version of HTML.

Sound is not handled particularly well by HTML4, requiring either Flash or Direct Download rather than buffering of sound.