Skip to content

Instantly share code, notes, and snippets.

View thewoolleyman's full-sized avatar

Chad Woolley thewoolleyman

View GitHub Profile

Statistics

  • In 2017, the US and allied strikes in Iraq and Syria have killed as many as 6,000 civilians. This represents an increase of more than 200 percent over the previous year. Source: Airwars, cited in The Washington Post.

  • Since 2014, as many as 9,315 civilians have died in US-led coalition strikes, with death tolls spiking sharply in 2017. Source: Airwars, cited in above article.

  • Since 2004, the US military has launched a minimum of 4,926 confirmed drone strikes, killing as many as 1555 civilians and 345 children. Source: The Bureau of Investigative Journalism.

  • The US military is officially fighting wars in seven countries: Afghanistan, Iraq, Syria, Yemen,

@moonmaster9000
moonmaster9000 / javascriptClasses_es6_versus_es5.js
Last active August 13, 2019 17:13
Javascript Classes: es5 versus es6
//old school es5 syntax for creating a class
//advantage: lets you create private functions and state through closure
//disadvantage: looks weird if you learned OO through language like c++/java/ruby, etc. Doesn't support prototypical inheritance.
//constructor function
function MyES5Class(aPrivateVar){
var aontherPrivateVar = "I'm a private variable! You can't access me from the outside."
this.publicVar = "I'm a public variable! You can access me from the outside!"
this.myPublicFunction = function(){
@lalunamel
lalunamel / thing_of_the_week.md
Last active March 13, 2018 13:36
Thing of the Week blog post

Combating bias and promoting inclusion in the workplace is something we can all agree needs to happen. The question, then, is how?

The way I see it, there are two directions from which change can come: from the top, or from the bottom. Changes from the top come in the form of new HR policies, training, or declarations for more diversity and inclusion work (all of which Pivotal is already doing). Changes from the bottom are a change in culture and a realization that every interaction matters.

What is Thing of the Week?

With

@thewoolleyman
thewoolleyman / how_to_ask_for_help.md
Last active November 15, 2022 17:19
How To Ask For Help

One of the most important things you can learn as a software developer is how to find your own answers. When you are working with unfamiliar technologies, though, sometimes that is hard, and you have to ask questions.

However, you should make sure you have done everything you can to find the answer yourself, and that you ask good questions without wasting the time of people who can help you. Because if you do waste people's time, they won't want to continue helping you.

Here are some references that will help teach you how to find your own answers, and to ask good questions if you cannot find your own answer.

@lalunamel
lalunamel / thing-of-the-week.txt
Last active March 13, 2018 13:36
Thing of the week
Thing of the week!
- Start meetings by seeing how folks are doing, feelings-wise
- Notice who you're inviting to stuff and how you invite them.
- When you see someone do something great, call it out!
- When referring to the whole team, don't just use `engineers` or `devs`
@mikfreedman
mikfreedman / temp-fly.rb
Last active September 20, 2017 03:10
Use fly with a temporary flyrc - useful for situations where you absolutely positively want your session to be temporary
#!/usr/bin/env ruby
# -*- mode: ruby -*-
# # vi: set ft=ruby :
require 'tmpdir'
class Input
attr_reader :get_method

React Cheat Sheet

Getting started with React is simple. There's only three things you need to know to get started: Components, props, and state.

Components

Components are the basic building blocks of a react app. They have a render method:

const React = require("react")
@rcugut
rcugut / node-npm-install.md
Last active February 2, 2024 11:51 — forked from DanHerbert/fix-homebrew-npm.md
Install node & npm on Mac OS X with Homebrew

DEPRECATED as of macOS 10.13 (High Sierra). See the new GUIDE to install nvm and yarn for macOS (updated July 2019)

Fixing npm On Mac OS X for Homebrew Users

Installing node through Homebrew can cause problems with npm for globally installed packages. To fix it quickly, use the solution below. An explanation is also included at the end of this document.

Solution

This solution fixes the error caused by trying to run npm update npm -g. Once you're finished, you also won't need to use sudo to install npm modules globally.

@jpalala
jpalala / how-to-setup-mac-elasticsearch.md
Created September 11, 2015 08:28
setting up elasticsearch on your mac with brew

Install va homebrew

If you don't have homebrew installed - get homebrew here

Then run: brew install elasticsearch

Configuration

Update the elasticsearch configuration file in /usr/local/etc/elasticsearch/elasticsearch.yml.

@willurd
willurd / web-servers.md
Last active November 13, 2024 13:44
Big list of http static server one-liners

Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.

Discussion on reddit.

Python 2.x

$ python -m SimpleHTTPServer 8000