Skip to content

Instantly share code, notes, and snippets.

@atoulme
atoulme / sodium-jnr.py
Created May 28, 2019 21:45 — forked from cleishm/sodium-jnr.py
JNR bindings generator for sodium
#!/usr/bin/env python
import sys
# This is not required if you've installed pycparser into
# your site-packages/ with setup.py
sys.path.extend(['.', '..'])
from pycparser import c_parser, c_ast, parse_file
class JNRRender(c_ast.NodeVisitor):
@atoulme
atoulme / cla.txt
Created July 23, 2018 06:59 — forked from rojotek/cla.txt
ConsenSys Apache 2 based CLA
ConsenSys AG
Individual Contributor License Agreement ("Agreement")
Thank you for your interest in ConsenSys AG (ConsenSys).
In order to clarify the intellectual property license
granted with Contributions from any person or entity, ConsenSys
must have a Contributor License Agreement ("CLA") on file that has
been signed by each Contributor, indicating agreement to the license
terms below. This license is for your protection as a Contributor as
well as the protection of ConsenSys and its users; it does not
#!/usr/bin/env ruby
# Input: WordPress XML export file.
# Outputs: a series of Textile files ready to be included in a Jekyll site,
# and comments.yml which contains all approved comments with metadata which
# can be used for a Disqus import.
require 'rubygems'
require 'hpricot'
require 'clothred'
define 'foo' do
Java.java.lang.System.setProperty("foo", "bar")
end
gauss:rubinius brian$ echo "raise 'fuck this'" > jruby.rb
gauss:rubinius brian$ irb
>> $LOADED_FEATURES << 'jruby'
=> ["e2mmap.rb", "irb/init.rb", "irb/workspace.rb", "irb/context.rb", "irb/extend-command.rb", "irb/output-method.rb", "irb/notifier.rb", "irb/slex.rb", "irb/ruby-token.rb", "irb/ruby-lex.rb", "readline.bundle", "irb/input-method.rb", "irb/locale.rb", "irb.rb", "rubygems/defaults.rb", "thread.bundle", "thread.rb", "etc.bundle", "rbconfig.rb", "rubygems/exceptions.rb", "rubygems/version.rb", "rubygems/requirement.rb", "rubygems/dependency.rb", "rubygems/gem_path_searcher.rb", "rubygems/user_interaction.rb", "rubygems/platform.rb", "rubygems/specification.rb", "rubygems/source_index.rb", "rubygems/builder.rb", "rubygems/config_file.rb", "rubygems/custom_require.rb", "stringio.bundle", "yaml/error.rb", "syck.bundle", "yaml/ypath.rb", "yaml/basenode.rb", "yaml/syck.rb", "yaml/tag.rb", "yaml/stream.rb", "yaml/constants.rb", "rational.rb", "date/format.rb", "date.rb", "yaml/rubytypes.rb", "yaml/types.r
@atoulme
atoulme / gist:66989
Created February 19, 2009 16:37 — forked from anonymous/gist:66988
#!/usr/bin/ruby
# Author: Renato Silva
if not ARGV[1] =~ /\A[^--]*\z/
goal = "Update cleaner for Eclipse Ganymede, version 2009.2.18"
usage = "Usage: #{File.basename($0)} <eclipse home> <target dir> [--all]\n\n\t--all\t Show ignored plugins"
puts "\n\t#{goal}\n\n\t#{usage}\n\n"
exit
end
Let's make a list of Sinatra-based apps!
Apps:
- http://github.com/cschneid/irclogger "Sinatra based irclogger.com"
- http://github.com/rtomayko/wink "minimalist blogging engine"
- http://github.com/foca/integrity "The easy and fun Continuous Integration server"
- http://github.com/sr/git-wiki "git-powered wiki"
- http://github.com/entp/seinfeld "Seinfeld-inspired productivity calendar to track your public github commits."
- http://github.com/karmi/marley "Marley, the blog engine without <textareas>."
- http://github.com/ichverstehe/gaze "Serve up your Markdown files with this tiny Sinatra app!"