Skip to content

Instantly share code, notes, and snippets.

View nodebotanist's full-sized avatar
❤️
Still trans and tired

Mx. Kassian Rosner Wren nodebotanist

❤️
Still trans and tired
View GitHub Profile
@nodebotanist
nodebotanist / gist:2893507
Created June 8, 2012 04:04
Terrible JS example
<div class="example_left">
<div id="myWrapper" style="width:100%; height: 150px; background-color: #FFF; color: #000; font-size: 24px;">
<b>This is some text</b>.<br>
<button onclick="document.getElementById(&quot;myWrapper&quot;).style.color = &quot;#F00&quot;;">Click Here!!!1!!</button>
</div>
@nodebotanist
nodebotanist / gist:2893580
Created June 8, 2012 04:26
Bit of the example app for a slide
App.toDo = Backbone.Model.extend({
idAttribute: 'attributes.key',
initialize: function(){
this.key = this.get('key');
}
});
App.toDoList = Backbone.Collection.extend({
model : App.toDo,
initialize : function(){
@nodebotanist
nodebotanist / gist:2901253
Created June 9, 2012 14:47
Example Jasmine Test
describe('Example Suite', function(){
var truthy;
beforeEach(function(){
truthy = true;
});
it('Should pass this test', function(){
expect(truthy).toBeTruthy();
});
@nodebotanist
nodebotanist / gist:2901254
Created June 9, 2012 14:47
Example Jasmine Test
describe('Example Suite', function(){
var truthy;
beforeEach(function(){
truthy = true;
});
it('Should pass this test', function(){
expect(truthy).toBeTruthy();
});
{
"meta": {
"X-RateLimit-Limit": "60",
"X-RateLimit-Remaining": "58",
"X-RateLimit-Reset": "1406034781",
"Cache-Control": "public, max-age=60, s-maxage=60",
"Vary": "Accept",
"ETag": "\"3a3c1f8302ae6272f7791a2d39f145f3\"",
"X-GitHub-Media-Type": "github.v3",
"status": 200
@nodebotanist
nodebotanist / gist:0b976847f4c68eb389f8
Last active June 16, 2016 19:48
On "Real Coding," history, and what it means to be a programmer.

I'm sitting here, on a rainy Sunday morning in June 2015, in front of my MacBook Air, flipping switches on my Android, staring at the computer. A light bulb in my living room flickers from blue, to orange, to some weird green color. I'm tracking Bluetooth LE Characteristics. I have a Bluetooth light bulb, and they don't have a javascript API yet, so I'm using noble and node to write one.

I'm sitting there, a few miles away, in I want to say August 1999. I'm staring at a CRT monitor, and plugged into a USB port on my family's windows tower is a GameBoy GameShark that I took on a lot of chores and time to earn. plugged into that is some Harvest Moon game or another. I want to say I needed more tomato seeds. My child-brain decided that instead of figuring out a way to earn the in-game currency, I would alter the universe.

I wasn't the most straightforward-thinking kid.

Since then I've learned I could've just used Yahoo (or even Ask Jeeves!) for the codes. Instead I looked up how to make them: I found profanit

'use strict'
var secrets = require('./config/secrets')
var request = require('request')
var fs = require('fs')
var courses = [];
fs.readFile('./data/courses.csv', function(err, body){
let courses_text = body.toString().split('\n')
courses_text.forEach(function(item){
cc.sh'use strict'
const colors = require('colors')
const args = require('yargs').argv
console.log('Welcome to our JWT generator!'.underline.green)
if(!args.secret){
console.log('You need to include a string for --secret so we can sign our JWT key!'.red.underline)
process.exit(1)
@nodebotanist
nodebotanist / Package.json
Last active April 13, 2016 16:58
OAuth 2 source code
{
"name": "oauth-webinar-source",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"keywords": [],
"author": "",
config 'dnsmasq'
option domainneeded 1
option boguspriv 1
option filterwin2k 0
option localise_queries 1
# disable rebind protection
option rebind_protection 0
# end changes
option rebind_localhost 0
option local '/lan/'