Skip to content

Instantly share code, notes, and snippets.

View franckverrot's full-sized avatar
📚
🥋

Franck Verrot franckverrot

📚
🥋
View GitHub Profile
@franckverrot
franckverrot / gist:3435648
Created August 23, 2012 11:09 — forked from joelmoss/gist:2470666
Capistrano recipe for Puma start/stop/restarts
set :shared_children, shared_children << 'tmp/sockets'
namespace :deploy do
desc "Start the application"
task :start, :roles => :app, :except => { :no_release => true } do
run "cd #{current_path} && RAILS_ENV=#{stage} bundle exec puma -b 'unix://#{shared_path}/sockets/puma.sock' -S #{shared_path}/sockets/puma.state --control 'unix://#{shared_path}/sockets/pumactl.sock' >> #{shared_path}/log/puma-#{stage}.log 2>&1 &", :pty => false
end
desc "Stop the application"
task :stop, :roles => :app, :except => { :no_release => true } do
@franckverrot
franckverrot / gist:4008539
Created November 3, 2012 20:05 — forked from chrismdp/gist:2768532
Paypal IPN integration in about 30 lines of Sinatra.
diff --git a/app/account.rb b/app/account.rb
index a108685..c89ad34 100644
--- a/app/account.rb
+++ b/app/account.rb
@@ -1,4 +1,22 @@
+require 'open-uri'
+
module Sol
+ class Url
+ def self.get(url)
require "./tinyparse"
parser = Tinyparse.build do
paren "(", :main, ")", :main
main [:paren, ""]
end
["((()))", "(((", "()()((()()))", "))(("].each do |str|
puts str
gem "paymill"
module elmira
import java.util.HashMap
import java.util.Arrays
import java.util.LinkedList
function test = -> DynamicObject()
function Elmira = -> DynamicObject():

The easiest way to start using the LLVM C++ API by example is to have LLVM generate the API usage for a given code sample. In this example it will emit the code required to rebuild the test.c sample by using LLVM:

$ clang -c -emit-llvm test.c -o test.ll
$ llc -march=cpp test.ll -o test.cpp
require 'benchmark/ips'
class Foo
def bar
# "Foo#bar"
end
end
module Bar
def bar
#!/usr/bin/env bash

# Assuming OS X Yosemite 10.10.4

# Install XCode and command line tools
# See https://itunes.apple.com/us/app/xcode/id497799835?mt=12#
# See https://developer.apple.com/library/mac/documentation/Darwin/Reference/ManPages/man1/xcode-select.1.html
xcode-select --install
Dictionary! par Wordset
Dictionary! est une application dictionnaire en anglais facile à utiliser et sans superflu pour iPhone, enrichie par la communauté Wordset.org. Il vous aide à trouver les mots facilement, même si vous ne pouvez pas l'épeler correctement. Il saura très bien deviner les mots en anglais que vous recherchez.
La totalité du dictionnaire est installée sur votre smartphone ! Si vous êtes déconnecté(e) ou tout simplement hors-ligne, votre application contient des dizaines de milliers de définitions directement sur votre smartphone. En ligne, vous pourrez rechercher des définitions plus détailles. En somme, un vrai dictionnaire !
Fonctionnalités :
* Recherche ultra-rapide
* Totalité du dictionnaire sur votre smartphone
* Pas besoin de connexion !

What I Wish I'd Known About Equity Before Joining A Unicorn

Disclaimer: This piece is written anonymously. The names of a few particular companies are mentioned, but as common examples only.

This is a short write-up on things that I wish I'd known and considered before joining a private company (aka startup, aka unicorn in some cases). I'm not trying to make the case that you should never join a private company, but the power imbalance between founder and employee is extreme, and that potential candidates would