This file contains 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
### Keybase proof | |
I hereby claim: | |
* I am dudymas on github. | |
* I am dudymas (https://keybase.io/dudymas) on keybase. | |
* I have a public key ASBGAAZki9diB5PBaYRxz0dPSxwVv4zIdI-9aeGZdxNyjwo | |
To claim this, I am signing this object: |
This file contains 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
{- | |
I used GLUT's Hello.hs as a starting point... | |
I was just trying to get the smallest working particle sim possible | |
-} | |
module ParticleSim ( Particle, random, size, vx, vy, px, py, genParticles, move, rebound, particlePosition) | |
where | |
import Data.IORef ( IORef, newIORef ) | |
import Graphics.UI.GLUT | |
import Control.Monad.Cont | |
import qualified System.Random as Randy |
This file contains 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
<# | |
visual studio | |
#> | |
choco install -y sysinternals | |
#add ssh.bat with "stermc %1" | |
#choco install -y bitvise-ssh-client | |
choco install -y nuget.commandline | |
choco install -y nugetpackageexplorer | |
choco install -y python2 | |
choco install -y nodejs.install |
This file contains 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/echo please source me, do not run me | |
function git-setup-pullrequest-branch() { | |
PULLREQUEST=${1:?Please specify a branch name for your pull request} | |
REMOTE=${2:-origin} | |
CURRENT=$(git rev-parse --abbrev-ref HEAD) | |
git branch --set-upstream-to=${REMOTE}/${PULLREQUEST} 2>/dev/null | |
if [ $? -ne 0 ] ; then | |
echo "Create pull request branch ${REMOTE}/${PULLREQUEST}? [y/N]" | |
read answer |
This file contains 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 | |
if [[ "$(which jq)" == "" ]]; then | |
echo Please install jq \(i.e. brew install jq \)... | |
echo jq is used to parse configs. | |
exit 1 | |
fi | |
function repoint-config { | |
MACHINE_CONFIG=$1 |
This file contains 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
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
import os | |
from twisted.application import service | |
from twisted.web import server, static | |
from twisted.web.resource import Resource | |
from twisted.web.wsgi import WSGIResource | |
from twisted.internet import reactor | |
from flask.views import MethodView |
This file contains 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
Error Backtrace | |
/opt/opencrowbar/core/chef/cookbooks/barclamp/libraries/ip.rb:89:in `coerce' | |
/opt/opencrowbar/core/rails/app/models/network_range.rb:26:in `first' | |
/opt/opencrowbar/core/rails/app/models/network_range.rb:134:in `sanity_check_range' | |
/var/cache/crowbar/gems/ruby/2.1.0/gems/activesupport-4.0.13/lib/active_support/callbacks.rb:377:in `_run__2615059233174908453__validate__callbacks' | |
/var/cache/crowbar/gems/ruby/2.1.0/gems/activesupport-4.0.13/lib/active_support/callbacks.rb:80:in `run_callbacks' | |
/var/cache/crowbar/gems/ruby/2.1.0/gems/activemodel-4.0.13/lib/active_model/validations.rb:373:in `run_validations!' | |
/var/cache/crowbar/gems/ruby/2.1.0/gems/activemodel-4.0.13/lib/active_model/validations/callbacks.rb:106:in `block in run_validations!' | |
/var/cache/crowbar/gems/ruby/2.1.0/gems/activesupport-4.0.13/lib/active_support/callbacks.rb:373:in `_run__2615059233174908453__validation__callbacks' |
This file contains 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
<!DOCTYPE html> | |
<meta charset="utf-8"> | |
<title>Factorisation Diagrams - Jason Davies</title> | |
<style> | |
body { | |
font-family: sans-serif; | |
} | |
svg { | |
margin: 5px; | |
} |