Skip to content

Instantly share code, notes, and snippets.

View jeromegn's full-sized avatar
🏠
Rusting it up

Jerome Gravel-Niquet jeromegn

🏠
Rusting it up
View GitHub Profile
class Imports < Application
def index
render
end
<<<<<<< HEAD:app/controllers/imports.rb
def preview(file, software)
if valid_import?(file, software)
move_tempfile(file, software, @current_user)
= border-radius(!radius = 10px)
-moz-border-radius= !radius
-webkit-border-radius= !radius
border-radius= !radius
= border-top-radius(!radius = 10px)
+border-top-left-radius(!radius)
+border-top-right-radius(!radius)
NameError: uninitialized constant Sass::SyntaxError
/Users/jgn/.rvm/gems/ruby-1.9.1-p378/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:443:in `load_missing_constant'
/Users/jgn/.rvm/gems/ruby-1.9.1-p378/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:80:in `const_missing_with_dependencies'
/Users/jgn/.rvm/gems/ruby-1.9.1-p378/gems/haml-2.2.22/lib/sass/plugin.rb:143:in `exception_string'
/Users/jgn/.rvm/gems/ruby-1.9.1-p378/gems/haml-2.2.22/lib/sass/plugin.rb:100:in `rescue in update_stylesheet'
/Users/jgn/.rvm/gems/ruby-1.9.1-p378/gems/haml-2.2.22/lib/sass/plugin.rb:96:in `update_stylesheet'
/Users/jgn/.rvm/gems/ruby-1.9.1-p378/gems/haml-2.2.22/lib/sass/plugin.rb:83:in `block (2 levels) in update_stylesheets'
/Users/jgn/.rvm/gems/ruby-1.9.1-p378/gems/haml-2.2.22/lib/sass/plugin.rb:78:in `each'
/Users/jgn/.rvm/gems/ruby-1.9.1-p378/gems/haml-2.2.22/lib/sass/plugin.rb:78:in `block in update_stylesheets'
/Users/jgn/.rvm/gems/ruby-1.9.1-p378/gems/haml-2.2.22/lib/sass/plugin.rb:76
source "http://rubygems.org"
gem "amqp"
gem "eventmachine"
gem "em-websocket"
gem "twitter-stream"
gem "uuid"
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
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) {
@jeromegn
jeromegn / index.html
Created March 16, 2012 03:26
Activity on map
<!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;
@jeromegn
jeromegn / index.html
Created March 20, 2012 03:02 — forked from benjchristensen/index.html
Animated Line Graphs / Sparklines using SVG Path and d3.js
<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;
<div class="red-square" id="{{id}}-red-square">
</div>
<style>
.red-square {
background-color: red;
}
</style>
<script>
@jeromegn
jeromegn / keybase.md
Created November 25, 2014 18:24
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: