Skip to content

Instantly share code, notes, and snippets.

Rusting it up

Jerome Gravel-Niquet jeromegn

Rusting it up
Block or report user

Report or block jeromegn

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View crng.go
package main
import (
View messages.rb
class Messages
include Enumerable
attr_reader :messages
delegate :each, to: :messages
def initialize(messages = {}) # hash of error messages
@messages = messages
def full_messages
jeromegn / basic.ecr
Created Feb 7, 2016
Slang -> ECR -> HTML
View basic.ecr
<span id="some-id" class="classname">
<div id="hello" class="world world2">
<span data-some-var="<%= some_var %>">
<span class="deep_nested">
<%= %>
<span class="alongside" pid="<%= %>">

Keybase proof

I hereby claim:

  • I am jeromegn on github.
  • I am jerome ( on keybase.
  • I have a public key whose fingerprint is 0638 8CB6 C529 1977 7911 A36A FAF6 2F81 F60B 40B8

To claim this, I am signing this object:

View component.hbs
<div class="red-square" id="{{id}}-red-square">
.red-square {
background-color: red;
jeromegn / index.html
Created Mar 20, 2012 — forked from benjchristensen/index.html
Animated Line Graphs / Sparklines using SVG Path and d3.js
View index.html
<title>Animated Sparkline using SVG Path and d3.js</title>
<script src=""></script>
/* tell the SVG path to be a thin blue line without any area fill */
path {
stroke: steelblue;
stroke-width: 1;
fill: none;
jeromegn / index.html
Created Mar 16, 2012
Activity on map
View index.html
<!DOCTYPE html>
<script src=""></script>
<style type="text/css">
svg {
background: #222;
width: 960px;
View gist:1777604
up_vote: function(data, callback){
console.log(has_voted, 'has_voted, line 87');
mdb.collection('kudos_bank', function(err, coll){
coll.find({'target_hash':data.target_hash, 'id'}, function(err, cursor){
cursor.toArray(function(err, docs){
if (docs.length == 0) {
View gist:483585
ERROR: Loading command: install (Bundler::GemNotFound)
Could not find gem 'amqp (>= 0, runtime)' in the gems available on this machine.
ERROR: While executing gem ... (NameError)
uninitialized constant Gem::Commands::InstallCommand
View Gemfile
source ""
gem "amqp"
gem "eventmachine"
gem "em-websocket"
gem "twitter-stream"
gem "uuid"
You can’t perform that action at this time.