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 / 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()
})
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()
})
@ignu
ignu / data.csv
Created August 19, 2015 03:32
data! from editdata.org!
one two three yeah
hi bye oh oh
@ignu
ignu / data.csv
Last active August 29, 2015 14:27
data! from editdata.org!
cool o
oneaf adsf
af asdf
#!/bin/bash
# Called by "git push" after it has checked the remote status,
# but before anything has been pushed.
#
# If this script exits with a non-zero status nothing will be pushed.
#
# Steps to install, from the root directory of your repo...
# 1. Copy the file into your repo at `.git/hooks/pre-push`
# 2. Set executable permissions, run `chmod +x .git/hooks/pre-push`