Skip to content

Instantly share code, notes, and snippets.

View waynr's full-sized avatar
🙊

wayne waynr

🙊
  • somewhere around here
View GitHub Profile
@waynr
waynr / base.html
Last active December 29, 2015 09:39
aspen
<!doctype html>
<html class="no-js" lang="en">
<head>
{% block head %}
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>SimplePolitix</title>
<link rel="stylesheet" href="css/foundation.css" />
<script src="js/modernizer.js"></script>
{% endblock %}
@waynr
waynr / DiagramsTutorial.hs
Last active August 29, 2015 14:04
Potential group nesting problem in Diagrams?
\begin{code}
{-# LANGUAGE NoMonomorphismRestriction #-}
import Diagrams.Prelude
import Diagrams.Backend.SVG.CmdLine
blue_dotted :: Diagram B R2
blue_dotted = circle 1 # fc blue
# lw veryThick
# lc purple
@waynr
waynr / example.hs
Created September 7, 2014 19:01
Literate haskel example file
import Control.Monad
import System.Environment
import Text.ParserCombinators.Parsec hiding (spaces)
data LispVal = Atom String
| List [LispVal]
| DottedList [LispVal] LispVal
| Number Integer
| String String
| Bool Bool
@waynr
waynr / keybase.md
Last active August 29, 2015 14:07
keybase.md

Keybase proof

I hereby claim:

  • I am waynr on github.
  • I have a public key whose fingerprint is 206E 28A1 D6EA 67D3 FEBD 1278
  • 13D4 52FE C275 FCD4

To claim this, I am signing this object:

@waynr
waynr / keybase.md
Created October 5, 2014 05:02
keybase.md

Keybase proof

I hereby claim:

  • I am waynr on github.
  • I am waynr (https://keybase.io/waynr) on keybase.
  • I have a public key whose fingerprint is 206E 28A1 D6EA 67D3 FEBD 1278 13D4 52FE C275 FCD4

To claim this, I am signing this object:

@waynr
waynr / good yi.hs
Created October 24, 2014 04:50
yi.hs
{-# LANGUAGE OverloadedStrings #-}
import Yi
import Yi.Style (Color(Default))
main = yi $ myConfig
myConfig = defaultVimConfig
{ configUI = (configUI defaultVimConfig) { configTheme = myTheme }
}
@waynr
waynr / init-merge job
Created May 22, 2015 13:29
jjb job-template example
- job-template:
name: '{value_stream}_{name}_init-merge_{qualifier}'
meta_path_jobtemplate: 'resources/jobs/kickoffs.yaml'
scm:
- git:
url: '{git_url}'
skip-tag: '{git_skip_tag}'
branches:
- '{scm_branch}'
submodule:
@waynr
waynr / config.xml
Created June 8, 2015 20:16
jenkins global/system configuration XML example
<?xml version='1.0' encoding='UTF-8'?>
<o class="object">
<system_message/>
<jenkins-model-MasterBuildConfiguration class="object">
<numExecutors>1</numExecutors>
<labelString>hello</labelString>
</jenkins-model-MasterBuildConfiguration>
<jenkins-model-GlobalQuietPeriodConfiguration class="object">
<quietPeriod>10</quietPeriod>
</jenkins-model-GlobalQuietPeriodConfiguration>
@waynr
waynr / bogus.yaml
Created June 22, 2015 16:25
Demonstrate lack of parameter ordering from yaml dictionary using https://review.openstack.org/#/c/193660/3
- project:
name: bogus-jankerator
meta_path_project: 'poc-hydra/production/bogus-jankerator.yaml'
github_user: 'waynr'
github_project: 'bogus-jankerator'
jobs:
- 'hydra_{name}_jjb-test1'
- 'hydra_{name}_jjb-test2'
@waynr
waynr / demonstration.bash
Last active August 29, 2015 14:27
Add arbitrary qualifier capability to leiningen
~/projects/puppetlabs/puppet-server $ export LEIN=/home/wayne/projects/clojure/leiningen/bin/lein
~/projects/puppetlabs/puppet-server $ $LEIN change version leiningen.release/bump-version :release && lein pprint :version
"2.1.3"
~/projects/puppetlabs/puppet-server $ $LEIN change version leiningen.release/bump-version :rc && lein pprint :version
"2.1.3-RC1"
~/projects/puppetlabs/puppet-server $ $LEIN change version leiningen.release/bump-version :rc && lein pprint :version
"2.1.3-RC2"
~/projects/puppetlabs/puppet-server $ $LEIN change version leiningen.release/bump-version :alpha && lein pprint :version
"2.1.3-alpha1"
~/projects/puppetlabs/puppet-server $ $LEIN change version leiningen.release/bump-version :alpha && lein pprint :version