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
var app = $.sammy(function() { with(this) {
get('#/repondre/:comment_id', function() { with(this) {
partial('/templates/comments/new.html.erb', {parent_id: params['comment_id']}, function(content){
$("#comment_"+params['comment_id']).append(content);
});
}});
}});
var cont = $(jetpack.tabs.focused.contentDocument).find("body");
// Loading the default active corners template
$.ajax({
url: "http://test.jeromegn.is-a-geek.com/widget/base",
type: "GET",
success: function(data, textStatus) {
cont.append(data);
},
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;