This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Magic { | |
constructor(fn, a) { | |
this.__chain = [[fn, a]]; | |
} | |
get(t, a) { | |
if (a == "✨✨MAGIC✨✨") return true; | |
if (a == "resolve") { | |
return () => Magic.chain(this.__chain); | |
} | |
return (...b) => { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<section> | |
<h2><span class='fragment fade-right'>ryanj</span> <span class='fragment fade-up'>@</span> <span class='fragment fade-left'>red hat</span></h2> | |
<h1 class='fragment fade-up'>RevealJS Presentation Hacks</h1> | |
<h4 class='fragment fade-up'><a href="http://gist-reveal.it/57830ddbac95a9b3a6d464a03572cc74">http://gist-reveal.it/57830ddbac95a9b3a6d464a03572cc74</a></h4> | |
</section> | |
<section data-markdown> | |
## reveal.js | |
https://github.com/hakimel/reveal.js#revealjs-- |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
user www-data; | |
worker_processes 4; | |
error_log /var/log/nginx/error.log; | |
pid /var/run/nginx.pid; | |
events { | |
worker_connections 1024; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
user www-data; | |
worker_processes 4; | |
error_log /var/log/nginx/error.log; | |
pid /var/run/nginx.pid; | |
events { | |
worker_connections 1024; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
declare namespace F { | |
class Either<A, B> { | |
private constructor(); | |
// Hack to make A and B covariant. | |
private a: A; | |
private b: B; | |
static Left<A, B>(a: A): Either<A, B>; | |
static Right<A, B>(b: B): Either<A, B>; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*TODO Remove Tag when Done */ | |
var request = require('request'); | |
var cheerio = require('cheerio'); | |
var fs = require('fs'); | |
console.log('retrieving unicode table...'); | |
request.get('http://unicode.org/emoji/charts/full-emoji-list.html', function (err, response, body) { | |
console.log('loading data...'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<ifModule mod_rewrite.c> | |
Options +FollowSymLinks | |
IndexIgnore */* | |
RewriteEngine On | |
RewriteBase /gift/ | |
RewriteCond %{REQUEST_FILENAME} !-f | |
RewriteCond %{REQUEST_FILENAME} !-d | |
RewriteRule ^(.+)$ index.php/$1 [L,QSA] | |
</ifModule> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// Regular Expression for URL validation | |
// | |
// Author: Diego Perini | |
// Updated: 2010/12/05 | |
// License: MIT | |
// | |
// Copyright (c) 2010-2013 Diego Perini (http://www.iport.it) | |
// | |
// Permission is hereby granted, free of charge, to any person |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# install homebrew | |
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" | |
# homebrew-cask | |
brew tap phinze/homebrew-cask | |
brew install brew-cask | |
# development |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#star on APM and install using apm stars --install | |
#productivity all langs | |
apm install autocomplete-plus | |
apm install autocomplete-snippets | |
apm install open-last-project | |
apm install git-log | |
apm install git-history |