Skip to content

Instantly share code, notes, and snippets.

View ivanoats's full-sized avatar
💭
🤙 Stoked 🏄‍♂️

Ivan Storck ivanoats

💭
🤙 Stoked 🏄‍♂️
View GitHub Profile
@tsongas
tsongas / race3.html
Created November 18, 2014 05:06
Rabbit Game Bar Graph
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Race 3</title>
<link rel="stylesheet" href="style3.css">
<script src="http://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<script src="script3.js"></script>
</head>
<body>
@MartinJNash
MartinJNash / SwiftRubyCrowbarOperator.swift
Last active December 14, 2015 17:30
Ruby Crowbar Operator in Swift
import Cocoa
infix operator ||= {}
func ||= <T> (inout value: T?, newValue: @autoclosure () -> T) -> T {
if value == nil {
value = newValue()
}
return value!
@jezhumble
jezhumble / coc.md
Last active November 9, 2019 05:19
Some notes on codes of conduct from a conference organizer's perspective

Some notes on codes of conduct from a conference organizer's perspective

  1. The customers of a Code of Conduct are the people whom it is protecting. For tech conferences, that means marginalized people.
  2. The Code of Conduct is a promise to its customers from the conference organizers that they will be in a safe space, and that they will be protected and given the benefit of the doubt in the event of something bad happening.
  3. Thus the wording of a code of conduct should be decided by its customers. The Geek Feminism wiki hosts an example code of conduct: http://geekfeminism.wikia.com/wiki/Anti-harassment_policy_resources
  4. The legal basis of a code of conduct is my right, as an event organizer, to kick anybody out of my private event for any reason, even if they have paid. This happens all the time, often with the most flimsy excuses: http://www.hannahettinger.com/guest-post-by-clare/

If you, as a non-customer of the CoC, are not

@staltz
staltz / introrx.md
Last active September 9, 2026 22:19
The introduction to Reactive Programming you've been missing
@gringocl
gringocl / setting up minitest and rails.md
Last active August 29, 2015 14:01
Setting up a new rails project with minitest and capybara

#Setup new rails project with minitest and capybara for Behaviour Driven Development Introduction to Minitest.... We'll be setting up a new rails app with minitest and capybara so we can go over the steps to getting this going. We'll be using a rails 4.1+ in this example. Lets get started!

First thing create a new rails application, a git repository, and the first commit to the repo.

rails new awesomeapp
cd awesomeapp
git init
git add -A
@dcorns
dcorns / FedoraWebDevSetup
Last active March 13, 2023 14:01
One way to setup Fedora distro for Web Development
Fedora Setup Notes
1) If you did not make yourself an administrator during the install, Add yourself to etc/sudoers using the command visudo (allows user to authenticate own account for operations requiring root).
a) su, enter root password when prompted
b) visudo (use vi for sudo to edit the file following instructions in the file; either add self as a sudo user or enable a group for sudo user and add your self to that group using user group commands)
c) ctrl-D (exit root access)
d) logout and log back in or restart
e) Now you should be able to respond to any prompt requiring root with your own login credentials and be able to run commands using sudo with your own credentials.
2) Google Chrome Setup

Set up your computer with the following tools:

Latest version of Ruby (for Sass, and other tools) Node.js, PostgreSQL, MongoDB, Redis,

Editors: We use Atom.io or Sublime Text 3 in class, and I'm betting you already do too (unless you rock Vim or Emacs). It has a fully-featured, unlimited time Trial mode.

Optional: if you are coming from an IDE like Visual Studio or Eclipse, you may like WebStorm (trial version) better

@anotheruiguy
anotheruiguy / node-and-express.md
Last active August 10, 2025 16:08
Set up a new Node.js project with Express >4.0: a newb's guide

And my article is deprecated!

As of just writing this, Express 4.0 was released and there are points in there that no longer matter. So, this remains as a great >4.0 article.

Node.js is the red-hot new hotness! You can't throw a stick on the internet without hitting someone talking about Node. But why? For one, it's built on JavaScript which is completely ubiquitous. So, why not build a development stack and server on JavaScript? I would argue that the installation is almost painless while the terseness of the language is not.

While you can create apps 100% from Node.js, the Express framework is a great tool that helps you solve many standard problems without having to write boilerplate code.

Node.js is here and it's not going anywhere anytime soon. So if you are new to Node.js, Express, and even JavaScript in general, this is a great newb's step-by-step guide to get started.

@tmlbl
tmlbl / gist:9791989
Created March 26, 2014 20:04
Mongoose nested model
module.exports = function (Schema, mongoose) {
var CommentSchema = new Schema({
author : { type: String },
postdate : { type: Date, default: Date.now() },
body : { type: String }
});
var PostSchema = new Schema({
title : { type: String, required: true },
url : { type: String, required: true, unique: true },
postdate : { type: Date, default: Date.now() },
#!/usr/bin/env ruby
# merge_asana_into_omnifocus.rb
# Hilton Lipschitz
# http://www.hiltmon.com
# Use and modify freely, attribution appreciated
# Script to import Asana projects and their tasks into
# OmniFocus and keep them up to date from Asana.