Skip to content

Instantly share code, notes, and snippets.

View jlord's full-sized avatar
😃
Hello, hi!

Jessica Lord jlord

😃
Hello, hi!
View GitHub Profile
@max-mapper
max-mapper / index.html
Created February 14, 2012 19:13
valentines day hearts with d3
<!DOCTYPE html>
<html>
<head>
<title>happy valentines day</title>
<link href='http://fonts.googleapis.com/css?family=Lato:100,900' rel='stylesheet' type='text/css'>
<script type="text/javascript" src="http://mbostock.github.com/d3/d3.js?1.26.0"></script>
<script type="text/javascript" src="http://mbostock.github.com/d3/d3.geo.js?1.26.0"></script>
<script type="text/javascript" src="http://mbostock.github.com/d3/d3.geom.js?1.26.0"></script>
<script type="text/javascript" src="http://mbostock.github.com/d3/d3.layout.js?1.26.0"></script>
<style type="text/css">
@davatron5000
davatron5000 / gist:2254924
Created March 30, 2012 20:57
Static Site Generators

Backstory: I decided to crowdsource static site generator recommendations, so the following are actual real world suggested-to-me results. I then took those and sorted them by language/server and, just for a decent relative metric, their Github Watcher count. If you want a heap of other projects (including other languages like Haskell and Python) Nanoc has the mother of all site generator lists. If you recommend another one, by all means add a comment.

Ruby

@ajashton
ajashton / gist:3043796
Created July 3, 2012 22:23
Drop shadows in Carto
#countries {
::shadow1, ::shadow2, ::shadow3 {
line-color: #024;
line-join: round;
}
::shadow1 {
line-opacity: 0.03;
line-width: 7;
}
::shadow2 {
@brianmario
brianmario / bars.md
Last active June 14, 2019 21:29
Some places to check out in Portland

Bars

PROTIP: Bars in Oregon have to serve food as long as they're serving alcohol. As a result, some of them have amazing food.

PROTIP: You can't buy alcohol (other than beer or wine) anywhere else but a state-controlled liquor store. Most of them are closed on Sundays and close around 7pm every other night of the week.

Southeast

  • The Night Light - This was our favorite bar just before we moved to Italy. Right in the heart of the quiet Clinton district (where we were living at the time).
  • The Doug Fir Lounge - I hate to use the word swanky again but that's the only way I can describe it. The entire place is built to look like a log cabin. Used to go here all the time. Pretty good bar. The restaurant is open until 3am (or at least was when I lived there) and has some DAMN good gastro pub style food. The halibut fish and chips and burger are insane. Funny enough, I saw the GitHub guys here (including maddox and Tek I think?) after
@max-mapper
max-mapper / readme.md
Last active December 13, 2015 23:39
node + npm explanation from #voxel.js irc

21:57 < dook> You seem to be new to node, is that right?

21:57 < skidz> good to know... yes.. very

21:57 < skidz> but familar with JS but mostly a C# programmer

21:58 < dook> Ok so the basic premise is that to make Chrome run javascript fast, they made a JS->C++ compiler called V8

21:58 < dook> It makes JS compile into very fast, efficient code.

@max-mapper
max-mapper / index.js
Last active December 16, 2015 23:39
client side module pattern exmaple
// assuming you have $ defined
var $ = jqueryblablah
// way 1
function addFunctions(global) {
function a() {}
function b() {}
global.a = a
global.b = b
}
@max-mapper
max-mapper / readme.md
Last active May 28, 2021 17:35
list of things that are like tacos
@davatron5000
davatron5000 / Sublime Text Setup.md
Last active April 15, 2023 15:39
A new user's guide to SublimeText 2. Estimated reading time: 2 mins. Estimated workthrough time: 12 minutes.

Make it useful

  • Install Package Control. For SublimeText 2, paste the following in Terminal:
import urllib2,os; pf='Package Control.sublime-package'; ipp = sublime.installed_packages_path(); os.makedirs( ipp ) if not os.path.exists(ipp) else None; urllib2.install_opener( urllib2.build_opener( urllib2.ProxyHandler( ))); open( os.path.join( ipp, pf), 'wb' ).write( urllib2.urlopen( 'http://sublime.wbond.net/' +pf.replace( ' ','%20' )).read()); print( 'Please restart Sublime Text to finish installation')

From here on out, use Package Control to install everything. +Shift+P, then type Install to get a list of installable packages you can 'livesearch through. After installing plugins, they should be running.

@mbostock
mbostock / .block
Last active March 23, 2018 08:45
Dynamic Hexbin
license: gpl-3.0
@shama
shama / favorite_module_pattern.js
Last active August 29, 2015 13:57
My favorite node.js module pattern
function Animal(name) {
if (!(this instanceof Animal)) return new Animal(name);
this.name = name || 'unknown';
}
module.exports = Animal;
Animal.prototype.feed = function(food) {
food = food || 'food';
return 'Fed ' + this.name + ' some ' + food;
};