Skip to content

Instantly share code, notes, and snippets.

View franckverrot's full-sized avatar
📚
🥋

Franck Verrot franckverrot

📚
🥋
View GitHub Profile
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 !
#!/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
require 'benchmark/ips'
class Foo
def bar
# "Foo#bar"
end
end
module Bar
def bar

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
module elmira
import java.util.HashMap
import java.util.Arrays
import java.util.LinkedList
function test = -> DynamicObject()
function Elmira = -> DynamicObject():
gem "paymill"
require "./tinyparse"
parser = Tinyparse.build do
paren "(", :main, ")", :main
main [:paren, ""]
end
["((()))", "(((", "()()((()()))", "))(("].each do |str|
puts str
@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)
@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 / dtrace_rubymotion_repl
Created May 18, 2012 15:41 — forked from fpotter/dtrace_rubymotion_repl
DTrace script to observe UNIX socket traffic to/from a RubyMotion app
#!/usr/bin/env dtrace -s
/*
* DTrace script to observe UNIX socket reads/writes for RubyMotion apps running
* in the iOS Simulator.
*
* Usage: sudo dtrace_rubymotion_repl <pid of running RubyMotion iOS app>
*
*/
syscall::sendto:entry