Skip to content

Instantly share code, notes, and snippets.

View AVancans's full-sized avatar

Arturs Vancans AVancans

View GitHub Profile
@AVancans
AVancans / bat
Last active October 21, 2015 10:37
(function () {
var r=Math.random,n=0,d=document,w=window,
i=d.createElement('img'),
z=d.createElement('div'),
zs=z.style,
a=w.innerWidth*r(),b=w.innerHeight*r();
zs.position="fixed";
zs.left=0;
zs.top=0;
zs.opacity=0;
@AVancans
AVancans / bat.js
Created October 21, 2015 10:27
bat
(function () {
var newScript = document.createElement('script');
newScript.type = 'text/javascript';
newScript.src = 'https://cdn.delphitools.info/wp-content/uploads/2013/10/jsbat.js?1.2';
document.getElementsByTagName('body')[0].appendChild(newScript);
})();
@AVancans
AVancans / 0_reuse_code.js
Created October 21, 2015 10:24
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
PlacePicker.IntentBuilder intentBuilder = new PlacePicker.IntentBuilder();
Intent intent = intentBuilder.build(Main.this);
startActivityForResult(intent, REQUEST_PLACE_PICKER);