Skip to content

Instantly share code, notes, and snippets.

View ignu's full-sized avatar
🏳️‍🌈
interested in: react/typescript rails/ruby elixir & graphql

Leonard Smith ignu

🏳️‍🌈
interested in: react/typescript rails/ruby elixir & graphql
View GitHub Profile
@ignu
ignu / gist:822804
Created February 11, 2011 18:43
podcasts
The Ruby Show The Ruby Show http://feeds.feedburner.com/railsenvy-podcast
Briefly Awesome A weekly rundown of what's cool, new, and interesting in the world of web, mobile, social media, and entertainment. If it's awesome, it's here. Hosted by Christina Warren and Dan Benjamin. http://feeds.feedburner.com/brieflyawesome
The Big Web Show The Big Web Show features special guests and topics like web publishing, art direction, content strategy, typography, web technology, and more. It's everything web that matters. Hosted by Dan Benjamin and Jeffrey Zeldman. http://feeds.feedburner.com/bigwebshow
The Talk Show The Talk Show features discussion about technology, Apple, Mac, iPhone, iPad, movies, directors, and the Web. Hosted by Dan Benjamin and John Gruber. http://feeds.feedburner.com/thetalkshow
The Pipeline The Pipeline is an interview show, featuring in-depth conversations with innovators, designers, geeks, newsmakers, entrepreneurs, and people who create amazing things. Hosted by Dan Benjamin. http:
@ignu
ignu / functions.js
Last active November 16, 2017 22:50
var sayHello = function() {
console.log('hello')
}
const Twit = require('twit');
const R = require('ramda');
const usersReplied = []
var bot = new Twit(donaldjtrumpisprod)
const replies = [
// #'Trump thinks temps are at record lows. https://twitter.com/realDonaldTrump/status/418542137899491328?ref_src=twsrc%5Etfw',
'https://twitter.com/justinjm1/status/860637529325883394',
# Your init script
#
# Atom will evaluate this file each time a new window is opened. It is run
# after packages are loaded/activated and after the previous editor state
# has been restored.
#
# An example hack to log to the console when each text editor is saved.
#
# atom.workspace.observeTextEditors (editor) ->
# editor.onDidSave ->
@ignu
ignu / session.json
Created January 10, 2017 15:32
React Web Workshop Gists
[
{"Id":5445,"SessionTime":"0001-01-01T00:00:00","SessionStartTime":"2017-01-10T08:00:00","SessionEndTime":"2017-01-10T12:00:00","Room":null,"Rooms":["Indigo Bay"],"Title":"7 Languages in 7 Hours","Abstract":"Hands-on experience in seven different languages, ranging from object-oriented to functional, from the cozy and familiar to the eye-squintingly terse and foreign. You'll work through a familiar kata in each of them, showing you how to approach an entirely new language. You'll learn about the strengths and weaknesses of each language out in the real world. You'll also see how each language's quirks can teach us ways to improve the code we write every day.\r\n\r\nYou may not come out of this pre-compiler an expert in all of these languages, but you'll have learned a lot about how to get started with a new one. You may even discover a new passion! At the very least, the next time a new language comes along, you'll have the tools you need to tackle it, and enough knowledge to help you push past the \"what
body {
font-size: 1.2em;
}
.posts { display: none; }
.lastpost { display: none; }
.readbar { display: none; }
@ignu
ignu / bcoIgnore.js
Last active July 26, 2016 21:39
Ignore posts on BCO containing words you don't want to see.
// Step 1: download and enable https://chrome.google.com/webstore/detail/custom-javascript-for-web/poakhlngfciodnhlhhgnaaelnpjljija
// Step 2: Add your banned words here.
var bannedWords = ['posterName_', "PosterName", "offensiveWord"]
var removeShit = function() {
bannedWords.forEach(function(word) {
console.log("removing", word)
$("ul.view:contains(" + word + ")").hide()
})
#!/usr/bin/env bash
# repository
cd /tmp
wget http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
rpm -Uvh epel-release-6-8.noarch.rpm
# system update
yum -y update
yum -y groupinstall "Development Tools"
yum -y install libxslt-devel libyaml-devel libxml2-devel gdbm-devel libffi-devel zlib-devel openssl-devel libyaml-devel readline-devel curl-devel openssl-devel pcre-devel git memcached-devel valgrind-devel mysql-devel ImageMagick-devel ImageMagick
@ignu
ignu / gist:5685418
Last active December 17, 2015 22:58
1) you don't need the var keyword. all variables will be protected from the global scope.
2) functions automatically return the last line, called an "explicit return"
3) functions are the funkiest looking but really simple. they look like this:
(obj) -> "this is my #{obj}"
instead of:
function(obj) {
return "this is my " + obj);
request(app)
.post('/api/users')
.set('Accept', 'application/json')
.end((err, res) => {
console.log(err)
expect(err).to.be(undefined)
expect(res.status).to.be(200)
done()
})