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.
$ python -m SimpleHTTPServer 8000
require 'io/console' | |
# RC | |
module RC | |
# IOLoop | |
class IOLoop | |
def initialize(io, game) | |
@io = io | |
@handle_game = game.method(:handle) | |
@update_game = game.method(:update) |
# frozen_string_literal: true | |
require 'io/console' | |
SIZE = 5 | |
def run | |
$stdin.echo = false | |
board = init_board | |
render!(board) |
{ | |
description = "C/C++ environment"; | |
inputs = { | |
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable"; | |
utils.url = "github:numtide/flake-utils"; | |
}; | |
outputs = { self, nixpkgs, utils, ... }@inputs: | |
utils.lib.eachDefaultSystem ( |
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.
$ python -m SimpleHTTPServer 8000
These are my notes on instaling NixOS 16.03 on a Lenovo ThinkPad X1 Carbon (4th generation) with an encrypted root file system using UEFI.
Most of this is scrambled from the following pages:
I hereby claim:
To claim this, I am signing this object:
xml2_sax_sample: xml2_sax_sample.c | |
gcc -o xml2_sax_sample `xml2-config --cflags --libs` xml2_sax_sample.c | |
clean: | |
rm xml2_sax_sample |
[alias] | |
st = status | |
stat = status | |
ci = commit | |
co = checkout | |
br = branch | |
ls = ls-files | |
undo = reset --soft HEAD^ | |
merge = merge --no-commit | |
cdiff = diff --cached |
This gist lets you keep IPython notebooks in git repositories. It tells git to ignore prompt numbers and program outputs when checking that a file has changed.
To use the script, follow the instructions given in the script's docstring.
For further details, read this blogpost.
The procedure outlined here is inspired by this answer on Stack Overflow.
[tox] | |
envlist=py27,lint | |
[testenv] | |
downloadcache={homedir}/.pipcache | |
distribute=True | |
sitepackages=False | |
[testenv:py27] | |
deps=nose |