Skip to content

Instantly share code, notes, and snippets.

View NicolasAndersen's full-sized avatar

Nicolas Andersen NicolasAndersen

View GitHub Profile
<?php
$username = "";
$password = "";
$data = array(
"api_key" => "3e7c78e35a76a9299309885393b02d97",
"email" => $username,
"format" => "JSON",
"locale" => "vi_VN",
"method" => "auth.login",
(() => {
var MD5 = function(d){result = M(V(Y(X(d),8*d.length)));return result.toLowerCase()};function M(d){for(var _,m="0123456789ABCDEF",f="",r=0;r<d.length;r++)_=d.charCodeAt(r),f+=m.charAt(_>>>4&15)+m.charAt(15&_);return f}function X(d){for(var _=Array(d.length>>2),m=0;m<_.length;m++)_[m]=0;for(m=0;m<8*d.length;m+=8)_[m>>5]|=(255&d.charCodeAt(m/8))<<m%32;return _}function V(d){for(var _="",m=0;m<32*d.length;m+=8)_+=String.fromCharCode(d[m>>5]>>>m%32&255);return _}function Y(d,_){d[_>>5]|=128<<_%32,d[14+(_+64>>>9<<4)]=_;for(var m=1732584193,f=-271733879,r=-1732584194,i=271733878,n=0;n<d.length;n+=16){var h=m,t=f,g=r,e=i;f=md5_ii(f=md5_ii(f=md5_ii(f=md5_ii(f=md5_hh(f=md5_hh(f=md5_hh(f=md5_hh(f=md5_gg(f=md5_gg(f=md5_gg(f=md5_gg(f=md5_ff(f=md5_ff(f=md5_ff(f=md5_ff(f,r=md5_ff(r,i=md5_ff(i,m=md5_ff(m,f,r,i,d[n+0],7,-680876936),f,r,d[n+1],12,-389564586),m,f,d[n+2],17,606105819),i,m,d[n+3],22,-1044525330),r=md5_ff(r,i=md5_ff(i,m=md5_ff(m,f,r,i,d[n+4],7,-176418897),f,r,d[n+5],12,1200080426),m,f,d[n+6],17,-1473231
@NicolasAndersen
NicolasAndersen / ngrxintro.md
Created April 26, 2017 10:26 — forked from btroncone/ngrxintro.md
A Comprehensive Introduction to @ngrx/store - Companion to Egghead.io Series

#Comprehensive Introduction to @ngrx/store By: @BTroncone

Also check out my lesson @ngrx/store in 10 minutes on egghead.io!

Update: Non-middleware examples have been updated to ngrx/store v2. More coming soon!

Table of Contents

@NicolasAndersen
NicolasAndersen / uncomment.demo.js
Created June 18, 2016 01:10 — forked from barneycarroll/uncomment.demo.js
A refined version of the hack discovered by @tjanczuk: multi-line strings in JS, by way of a hack that relies on JS engines' interpreters to read the multi-line comments stored in noop functions: http://tomasz.janczuk.org/2013/05/multi-line-strings-in-javascript-and.html NB: This code relies on non-spec functionality and as such is only reliable…
var countries = uncomment(function(){
/*
Afghanistan
Albania
Algeria
Andorra
Angola
Antigua and Barbuda
Argentina
Armenia