I hereby claim:
- I am albohlabs on github.
- I am alboh (https://keybase.io/alboh) on keybase.
- I have a public key ASC_h_lIaTJVBtQnkFHtNXV6Jm3ivRhXI3FMKbvVvib6SQo
To claim this, I am signing this object:
* general fp and js | |
* Oh Composable World https://www.youtube.com/watch?v=SfWR3dKnFIo | |
* Why Why Functional Programming Matters Matters http://raganwald.com/2014/12/20/why-why-functional-programming-matters-matters.html | |
* Functional Programming for JavaScript People https://medium.com/@chetcorcos/functional-programming-for-javascript-people-1915d8775504#.3sya7ojxb | |
* article series about fp in general https://medium.com/javascript-scene/composing-software-the-book-f31c77fc3ddc | |
* Curry and Function Composition https://medium.com/javascript-scene/curry-and-function-composition-2c208d774983 | |
* Handling null and undefined in JavaScript https://medium.com/javascript-scene/handling-null-and-undefined-in-javascript-1500c65d51ae | |
* Lenses https://medium.com/javascript-scene/lenses-b85976cb0534 | |
* book about fp in general https://mostly-adequate.gitbook.io/mostly-adequate-guide/ | |
* funny eccentric video series about the books :ausrufezeichen: https://www.youtube.com/watch?v=h_tkIpwbsxY&list=PLK_hdtAJ4KqX0JOs_KMA |
I hereby claim:
To claim this, I am signing this object:
// https://raw.githubusercontent.com/donnut/typescript-ramda/master/ramda.d.ts | |
// https://raw.githubusercontent.com/DefinitelyTyped/DefinitelyTyped/master/lodash/lodash.d.ts | |
declare namespace fp { | |
interface Dictionary<T> { | |
[index: string]: T; | |
} | |
interface CurriedFunction1<T1, R> { |
#!/usr/bin/env sh | |
## | |
# This is script with usefull tips taken from: | |
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
# | |
# install it: | |
# curl -sL https://raw.github.com/gist/2108403/hack.sh | sh | |
# |
(function($) { | |
var o = $( {} ); | |
$.each({ | |
on: 'subscribe', | |
trigger: 'publish', | |
off: 'unsubscribe' | |
}, function( key, api ) { | |
$[api] = function() { | |
o[key].apply( o, arguments ); |
YUI.add("my-widget", function (Y) { | |
var Node = Y.Node, | |
getClassName = Y.ClassNameManager.getClassName, | |
i, j, | |
baseClasses = ["_CLASS", "title", "loader", "viewer", "tweet", "ui", "label", "input", "button", "error"], | |
templates = ["_TEMPLATE", "<hgroup class={titleclass}><h1>{title}</h1><h2>{subtitle}<span>{term}</span></h2></hgroup>", "<div class={loaderclass}>loading...</div>", "<div class={viewerclass}></div>", "<article><a href={userurl} title={username}><img src={avatar} alt={username} /><h1>{username}</h1></a><p>{text}</p></article>", "<div class={uiclass}></div>", "<label class={labelclass}>{labeltext}</label>", "<input class={inputclass} />", "<button class={buttonclass}>{buttontext}</button>", "<p class={errorclass}>{message}</p>"]; | |
//constructor | |
function MyWidget(config) { |
var scr = document.createElement('script'); | |
// When the script runs, it'll pass the data into the formatCurrency function. Excellent. | |
scr.src = 'http://openexchangerates.org/latest.json?callback=formatCurrency'; | |
document.body.appendChild(scr); |
# http://stackoverflow.com/questions/1289061/best-way-to-use-php-to-encrypt-and-decrypt | |
$key = 'password to (en/de)crypt'; | |
$string = ' string to be encrypted '; // note the spaces | |
# To Encrypt: | |
$encrypted = base64_encode(mcrypt_encrypt(MCRYPT_RIJNDAEL_256, md5($key), $string, MCRYPT_MODE_CBC, md5(md5($key)))); | |
# To Decrypt: | |
$decrypted = rtrim(mcrypt_decrypt(MCRYPT_RIJNDAEL_256, md5($key), base64_decode($encrypted), MCRYPT_MODE_CBC, md5(md5($key))), "\0"); |
# fingerprint | get OS | |
nmap -O | |
# fingerprint with port | |
nmap -O -p 22,80 | |
# full TCP scan | |
nmap -sT -p1-65535 | |
# full UDP scan |
# initial new git | |
git clone [email protected]:gitosis-admin.git | |
git push | |
# add to server | |
git remote add origin [email protected]:bsad.git | |
git push origin master |