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
| Section "InputClass" | |
| Identifier "nathan touchpad catchall" | |
| MatchIsTouchpad "on" | |
| MatchDevicePath "/dev/input/event*" | |
| Driver "synaptics" | |
| # three fingers for the middle button | |
| Option "TapButton3" "2" | |
| # drag lock | |
| Option "LockedDrags" "1" |
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
| asciidoctor-diagram allows you to mix a diagram into your doc, but GitHub doesn't render it inline. Instead, you can do this: | |
| ---- | |
| ifdef::env-github[] | |
| image::diagram.png[] | |
| endif::[] | |
| ifndef::env-github[] | |
| ["plantuml", "diagram", "png"] | |
| ----------------------------------------------- | |
| title My Diagram |
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
| Our shared joy of programming: https://www.youtube.com/watch?v=3_zW63dcZB0 | |
| The mess we're in: https://www.youtube.com/watch?v=lKXe3HUG2l4 | |
| Programming should eat itself: https://www.youtube.com/watch?v=SrKj4hYic5A | |
| Inside the Wolfram Language: https://www.youtube.com/watch?v=EjCWdsrVcBM | |
| Transducers: https://www.youtube.com/watch?v=6mTbuzafcII |
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
| db.StartTransaction | |
| err := db.Execute | |
| if err != nil { | |
| db.Rollback | |
| return | |
| } | |
| err := db.Execute | |
| if err != 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
| ;; fix the PATH variable | |
| (defun set-exec-path-from-shell-PATH () | |
| (let ((path-from-shell (shell-command-to-string "$SHELL -i -c 'echo -n $PATH'"))) | |
| (setenv "PATH" path-from-shell) | |
| (setq exec-path (split-string path-from-shell path-separator)))) | |
| (defun set-env-from-shell (envvar) | |
| (let ((path-from-shell (shell-command-to-string (format "$SHELL -i -c 'echo -n $%s'" envvar)))) | |
| (setenv envvar path-from-shell))) |
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
| # Copyright 2015 Google Inc. All Rights Reserved. | |
| # | |
| # Licensed under the Apache License, Version 2.0 (the "License"); | |
| # you may not use this file except in compliance with the License. | |
| # You may obtain a copy of the License at | |
| # | |
| # http://www.apache.org/licenses/LICENSE-2.0 | |
| # | |
| # Unless required by applicable law or agreed to in writing, software | |
| # distributed under the License is distributed on an "AS IS" BASIS, |
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
| # Upstart script for Gemstash | |
| respawn | |
| respawn limit 15 5 | |
| start on runlevel [2345] | |
| stop on runlevel [06] | |
| script | |
| su - gemstash -c "/usr/local/bin/gemstash start --no-daemonize" |
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/bash | |
| set -e | |
| usage() { | |
| echo "the following environment variables are required:" | |
| echo "COUNTRY - Country code" | |
| echo "STATE - State / Province" | |
| echo "CITY - City" | |
| echo "ORG - Organization" |
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
| #include <math.h> | |
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <time.h> | |
| #define NUM_CARDS 52 | |
| int deck[NUM_CARDS]; | |
| /* |
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
| package main | |
| import ( | |
| "fmt" | |
| "reflect" | |
| ) | |
| func main() { | |
| var myint interface{} | |