Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.
Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.
function mapValues(obj, fn) { | |
return Object.keys(obj).reduce((result, key) => { | |
result[key] = fn(obj[key], key); | |
return result; | |
}, {}); | |
} | |
function pick(obj, fn) { | |
return Object.keys(obj).reduce((result, key) => { | |
if (fn(obj[key])) { |
This installs a patched ruby 1.9.3-p327 with various performance improvements and a backported COW-friendly GC, all courtesy of funny-falcon.
You will also need a C Compiler. If you're on Linux, you probably already have one or know how to install one. On OS X, you should install XCode, and brew install autoconf
using homebrew.
source :rubygems | |
gem 'shotgun', :group=>:development | |
gem 'rack-cache' | |
gem 'sinatra', :require => 'sinatra/base' | |
gem 'sinatra-support' | |
gem 'haml' |
# Add this to the end of your development.rb and add | |
# | |
# gem 'pry' | |
# | |
# to your Gemfile and run bundle to install. | |
silence_warnings do | |
begin | |
require 'pry' | |
IRB = Pry |
jViTBizGANaGywdZaYavwXUBWBuf5qQJVFVBQP6iaURq9veP87jsEBxCwX2ouY10 | |
cWFL2RxOhWhKIkAj6aS8ZTVwliKBeTA2Mwb51mCfsXbUoupWGkmdtTyyVN0i | |
GQz2naCg+OGmAo8gysw1bIXKvqdTkIqrM1/ybBAKhD1EMFJhalChIYCv8PpD | |
uS8EFby+z5bTKJ6v/JXmORIylGZeAWLdF1LXGePx8xQCQA8/PlC8qAQJxf0vs0 | |
iK2y2JAtSvcBwB9KGuNjOJ/IFsCSvnpQ92tM/t2vMnTQ9EUyGbse5Dhj7dgL | |
SCIK2E4RbSa5KFgIGyxBxQV4Y91/gmAE6Cf9WQ4Zo35E6oFQSIH73Xt5TxDouY | |
1n4yZGbf0Uu5/q5zkkcIV3Hb5UNs8or6iGylnRDiY3PBGSCPnP85roGD7DNp | |
ssrRXVq0+hgCdxSwN7j3zyTm9vAQ3A9xI0Re7PBXZ8ecXfWqXB1ph9b8oCKS6 | |
tBlyTdFDGlbKcP/6yStHr/zWWDM1pgVr9uEPFBIVz/d+7KCe0oifb6B+8jGd | |
CTW5VzbtMyw6hImkDROwJ9BmVAjboUutMG0koI_31HKBRaaaaaaaaCmDwSGrQLRw |
# I want this method in ruby-core | |
def let | |
yield | |
end | |
def fib(i) | |
let do |n = 1, result = 0| | |
if i == -1 | |
result | |
else |
If you set LD_PRELOAD to the path of a shared object, that file will be loaded before any other library (including the C runtime, libc.so). So to run ls with a your special malloc() implementation, do this: | |
$ LD_PRELOAD=/path/to/my/malloc.so /bin/ls |
alias.unstage=reset HEAD -- | |
alias.br=branch | |
alias.co=checkout | |
alias.ci=commit | |
alias.last=log -1 -p HEAD | |
alias.fi=diff --name-only | |
alias.di=diff | |
alias.st=status -s --untracked=no | |
alias.dc=diff --cached | |
alias.rmc=rm --cached |
%%% Monad.oz --- A synax that resembles Haskell's do notation for monads. | |
%% NB: The macros need to be evaluated before the examples can be run | |
declare Maybe Reader State Seq in | |
fun {Seq Monad A B} | |
{Monad.bind A fun {$ _} B end} | |
end | |
%% Syntax: return X |