Skip to content

Instantly share code, notes, and snippets.

View jamonholmgren's full-sized avatar

Jamon Holmgren jamonholmgren

View GitHub Profile
@GantMan
GantMan / NEW_OPENSOURCE_TODO.md
Last active December 27, 2021 23:20
ALL the things to do when starting a new Github Project - IR JavaScript | TypeScript

Step 1 - Create nest on Github

  1. Click Plus
  2. New Repository
  3. IR/REPO_NAME
  4. PROJECT_DESCRIPTION
  5. Do not initialize with anything (easier to add after)
  6. Star your repo
  7. Pull your repo down locally and cd to it
@jevakallio
jevakallio / reactiveconf-slam-poetry.md
Last active July 7, 2021 19:57
#ReactiveConf 2017 Lightning Talk Submission: JavaScript Slam Poetry

TL;DR: If you want to see me perform a spoken word poem about JavaScript in front of 1000 people (and on video), please ⭐ star this gist. If you're on mobile, you'll need to request desktop site.

JavaScript Slam Poetry

Javascript! Slam! Poetry!

@runspired
runspired / slideshow-item.component.js
Last active August 29, 2015 14:18
Explicit Component Nesting
import Ember from "ember";
export default Ember.Component.extend({
active: false,
slideshow: null,
init: function() {
this._super();
class Object
def send(method, *args)
end
def method_missing(*args)
end
def self.method_added(method_name)
remove_method(method_name)
end
@jasonrudolph
jasonrudolph / 00-about-search-api-examples.md
Last active August 1, 2024 19:26
5 entertaining things you can find with the GitHub Search API
class AppDelegate
def applicationDidFinishLaunching(notification)
MainMenu.build!
MainMenu[:app].subscribe :quit do |_|
NSApp.terminate(self)
end
MainMenu[:file].subscribe :new do |_|
@wycats
wycats / promises.js
Last active December 15, 2015 15:09
// This is just an example of nested callbacks. I know you could achieve this
// goal with simpler code but I'm just showing an example
// The well-known callback pattern
fs.mkdir("some-path", function(err) {
fs.open("some-path/file", "w", function(err, fd) {
var buffer = new Buffer("hello world");
fs.write(fd, buffer, 0, buffer.length, null, function(err, bytes) {
console.log("Wrote " + bytes + " bytes");
@archan937
archan937 / pretty_inspect.rb
Last active December 12, 2015 08:29
A simple Ruby method which returns an inspection string of the passed object with pretty indention ^^
def pretty_inspect(object, indent = 2)
if object.is_a?(Array)
entries = object.collect{|x| "#{pretty_inspect x, indent + 2}"}
pretty_indent entries, "[", "]", indent
elsif object.is_a?(Hash)
entries = object.keys.sort.collect{|x| "#{pretty_inspect x} => #{pretty_inspect object[x], indent + 2}"}
pretty_indent entries, "{", "}", indent
else
object.inspect
end