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 (
"fmt"
"io/ioutil"
"os"
"strconv"
"syscall"
"time"
"unsafe"
View messages.rb
class Messages
include Enumerable
attr_reader :messages
delegate :each, to: :messages
def initialize(messages = {}) # hash of error messages
@messages = messages
end
def full_messages
@jeromegn
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>
<span class="deep_nested">
<%= Process.pid %>
</span>
</span>
</span>
<span class="alongside" pid="<%= Process.pid %>">
View keybase.md

Keybase proof

I hereby claim:

  • I am jeromegn on github.
  • I am jerome (https://keybase.io/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">
</div>
<style>
.red-square {
background-color: red;
}
</style>
<script>
@jeromegn
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
<html>
<head>
<title>Animated Sparkline using SVG Path and d3.js</title>
<script src="http://mbostock.github.com/d3/d3.js"></script>
<style>
/* tell the SVG path to be a thin blue line without any area fill */
path {
stroke: steelblue;
stroke-width: 1;
fill: none;
@jeromegn
jeromegn / index.html
Created Mar 16, 2012
Activity on map
View index.html
<!DOCTYPE html>
<html>
<head>
<title></title>
<script src="http://mbostock.github.com/d3/d3.js"></script>
<style type="text/css">
svg {
background: #222;
width: 960px;
View gist:1777604
up_vote: function(data, callback){
data.type="upvote";
console.log(has_voted, 'has_voted, line 87');
mdb.collection('kudos_bank', function(err, coll){
coll.find({'target_hash':data.target_hash, 'id':data.id}, function(err, cursor){
cursor.toArray(function(err, docs){
console.log(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 "http://rubygems.org"
gem "amqp"
gem "eventmachine"
gem "em-websocket"
gem "twitter-stream"
gem "uuid"
You can’t perform that action at this time.