Skip to content

Instantly share code, notes, and snippets.

View steveturner's full-sized avatar

Steven Turner steveturner

View GitHub Profile
@steveturner
steveturner / interviewbox.txt
Created July 9, 2019 06:44
Interview BoxStarter
Set-WindowsExplorerOptions -EnableShowHiddenFilesFoldersDrives -EnableShowProtectedOSFiles -EnableShowFileExtensions -EnableShowFullPathInTitleBar
Set-StartScreenOptions -EnableBootToDesktop -EnableDesktopBackgroundOnStart -EnableShowStartOnActiveScreen -EnableShowAppsViewOnStartScreen -EnableListDesktopAppsFirst
Set-CornerNavigationOptions -DisableUpperRightCornerShowCharms -DisableUpperLeftCornerSwitchApps -DisableUsePowerShellOnWinX
Set-TaskbarOptions -Lock -Dock Bottom
Update-ExecutionPolicy
choco install -y 7zip.install
#choco install -y atom
choco install -y chrome
@steveturner
steveturner / Brewfile
Created February 14, 2019 06:19
Steve T's brew file config for work Feb 2019
tap "b-ramsey/kali"
tap "brewsci/bio"
tap "homebrew/boneyard"
tap "homebrew/bundle"
tap "homebrew/cask"
tap "homebrew/cask-fonts"
tap "homebrew/cask-versions"
tap "homebrew/core"
tap "osgeo/osgeo4mac"
tap "rxseger/hackrf"

Keybase proof

I hereby claim:

  • I am steveturner on github.
  • I am kylixz (https://keybase.io/kylixz) on keybase.
  • I have a public key ASA6bcLsj6IrNm6XaJY2JA_6wDj_MEi8x1BvxVCQ7xd4Kwo

To claim this, I am signing this object:

@steveturner
steveturner / ExampleCDISPI.java
Last active March 30, 2018 22:13
An example using CDI to provide multiple implementations of an interface.
@Inject
private Instance<IPropagationModel> providerSource;
public ProviderLister() {
}
public List<String> getProviderList() {
List<String> names = new ArrayList<String>();
for (IPropagationModel provider : providerSource) {
Set-WindowsExplorerOptions -EnableShowHiddenFilesFoldersDrives -EnableShowProtectedOSFiles -EnableShowFileExtensions -EnableShowFullPathInTitleBar
Set-StartScreenOptions -EnableBootToDesktop -EnableDesktopBackgroundOnStart -EnableShowStartOnActiveScreen -EnableShowAppsViewOnStartScreen -EnableListDesktopAppsFirst
Set-CornerNavigationOptions -DisableUpperRightCornerShowCharms -DisableUpperLeftCornerSwitchApps -DisableUsePowerShellOnWinX
Set-TaskbarOptions -Lock -Dock Bottom
Update-ExecutionPolicy
choco install -y 7zip.install
#choco install -y atom
choco install -y chrome
@steveturner
steveturner / gist:5144990
Created March 12, 2013 17:27
three.js and coffeescript
class window.ThreeJSDemo
init: () ->
@renderer = new THREE.WebGLRenderer()
@renderer.setSize( window.innerWidth, window.innerHeight )
document.body.appendChild( @renderer.domElement )
@camera = new THREE.PerspectiveCamera( 75, window.innerWidth / window.innerHeight, 1, 1000 )
@camera.position.z = 400
@scene = new THREE.Scene()
@geometry = new THREE.IcosahedronGeometry( 200, 1 );
@material = new THREE.MeshBasicMaterial( { color: 0x333, wireframe: true, wireframeLinewidth: 6
@steveturner
steveturner / gist:5144957
Created March 12, 2013 17:23
clojurescript and three.js
(ns modern-cljs.modern)
(def THREE js/THREE)
(def camera (THREE.PerspectiveCamera. 75 (/ window/innerWidth
window/innerHeight) 1 1000))
(defn position [c]
(.-position c))
(defn set-position [c v]
(let [[x y z] v]
@steveturner
steveturner / gist:5144985
Created March 12, 2013 17:26
three.js and javascript
// workaround for chrome bug: http://code.google.com/p/chromium/issues/detail?id=35980#c12
if ( window.innerWidth === 0 ) { window.innerWidth = parent.innerWidth; window.innerHeight = parent.innerHeight; }
var camera, scene, renderer;
var geometry, material, mesh;
test = 200;
var init = function () {
renderer = new THREE.WebGLRenderer();
renderer.setSize( window.innerWidth, window.innerHeight );
document.body.appendChild( renderer.domElement );
camera = new THREE.PerspectiveCamera( 75, window.innerWidth / window.innerHeight, 1, 1000 );
@steveturner
steveturner / pallet.clj
Created March 3, 2013 17:03
pallet.clj
(ns startingclojure.pallet
(:require pallet.core pallet.compute pallet.configure)
(:use [pallet.action.package :only [package]]
[pallet.phase :only [phase-fn]]
[pallet.crate.automated-admin-user :only [automated-admin-user]]))
(pallet.core/converge
(pallet.core/group-spec "mygroup"
:count 0
:node-spec (pallet.core/node-spec
(ns startingclojure.app
(:use [clojure.pprint] [compojure.core] )
(:require
[ring.adapter.jetty :as jetty]
[ring.util.response :as response]
))
(defonce counter (atom 999))
(defonce urls (atom {}))
(defn shorten