This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')") | |
case `uname` in | |
*CYGWIN*) basedir=`cygpath -w "$basedir"`;; | |
esac | |
if [ -z "$NODE_PATH" ]; then | |
export NODE_PATH="/private/tmp/foo/node_modules/.pnpm/node_modules" | |
else |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(ns quil-site.examples.ten-print | |
(:require [quil.core :as q :include-macros true] | |
[quil.middleware :as m] | |
)) | |
(def start-scale 10) | |
(def ratio 0.9) | |
(def threshold 2) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import test from 'ava' | |
import td from '../helpers/testdouble' | |
import yargs from 'yargs' | |
const _new = td.replace('../../src/new') | |
const parser = yargs.command(require('../../src/commands/new')).help() | |
const projectName = 'my_project' | |
const roleName = 'shepRole' | |
const region = 'mordor' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File=/sys/class/backlight/intel_backlight/brightness | |
Brightness=$1 | |
MaxBrightness=$(cat /sys/class/backlight/intel_backlight/max_brightness) | |
PercentBrightness=$(($MaxBrightness / 100)) | |
NewBrightness=$(($Brightness * $PercentBrightness)) | |
sudo chown $USER $File | |
echo $NewBrightness > $File |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var webpack = require('webpack'); | |
module.exports = { | |
context: __dirname, | |
entry: './index', | |
output: { | |
path: __dirname, | |
filename: 'handler.js', | |
libraryTarget: 'commonjs2' | |
}, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; general config options | |
(global-auto-revert-mode t) | |
;; backup config | |
(setq backup-directory-alist '(("." . "~/.emacs.d/backups"))) | |
(setq backup-by-copying t) | |
(setq create-lockfiles nil) | |
(setq-default indent-tabs-mode nil) | |
(setq tab-stop-list (number-sequence 2 120 2)) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; general config options | |
;; backup config | |
(setq backup-directory-alist '(("." . "~/.emacs.d/backups"))) | |
(setq backup-by-copying t) | |
(setq create-lockfiles nil) | |
;; package stuff | |
(require 'package) | |
(package-initialize) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# taken from http://omniref.com/blog/blog/2014/09/19/programmers-are-hipster-librarians/ | |
while coding do | |
next unless Problem.unsolved? | |
frustration = 1 | |
question = Question.formulate(Problem) | |
while frustration < MAX_FRUSTRATION | |
answer = PersonalExperience.search(question) || InterTubes.search(question) | |
break unless answer.nil? |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git clone https://www.github.com/MHSProgrammingClub/members.git | |
cd .\members | |
git branch your-name | |
git checkout your-name | |
Open up your favorite text editor | |
**Create your file** save it as your-name.md |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
title: Git-ing To Know The Basics | |
author: | |
name: Chris Olszewski | |
outputs: slides.html | |
controls: true | |
theme: jdan/cleaver-retro | |
-- | |
# Git-ing To Know The Basics |
NewerOlder