Skip to content

Instantly share code, notes, and snippets.

View steveturner's full-sized avatar

Steven Turner steveturner

View GitHub Profile
@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: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
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 / 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) {

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 / 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"
@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