Skip to content

Instantly share code, notes, and snippets.

View finalcut's full-sized avatar

Bill Rawlinson finalcut

View GitHub Profile
@finalcut
finalcut / index.html
Last active December 12, 2015 12:39
My attempt at an XKCD type comic - you can view the results at http://cmx.io/#4773806
<!DOCTYPE html>
<meta charset="utf-8">
<link rel="stylesheet" href="http://cmx.io/v/0.1/cmx.css"/>
<script src="http://cmx.io/v/0.1/cmx.js"></script>
<style>.cmx-user-scene4 .cmx-text-border .cmx-path {stroke: orange}</style>
<body>
<div style="max-width:900px; -webkit-transform:rotate(0deg);">
<scene id="scene1">
<label t="translate(0,346)">
@finalcut
finalcut / gist:16024bcf31aefdfe6511
Created April 3, 2015 12:45
Apache Config for PHP and CF
# configure the path to php.ini
#PHPIniDir "C:/dev/tools/php"
Include "C:\dev\tools\apache2\conf\mod_jk.conf"
# JRun Settings
LoadModule jrun_module "C:/dev/tools/JRun4/lib/wsconfig/1/mod_jrun22.so"
<Files ~ ".hbmxml$">
Order allow,deny
@finalcut
finalcut / sortablecontroller.js
Last active October 2, 2015 17:46
SortableController
export default class SortableController {
static get $inject() { return [
'$scope'
];}
constructor($scope){
this.$scope = $scope;
this.tmpList = [];
for (let i = 1; i <= 6; i++){
this.tmpList.push({
text: 'Item ' + i,
@finalcut
finalcut / gist:2487635df0d1ff3ec410
Created November 10, 2015 13:39
Angular 1.x ES 6 Service using babel stage 0
export default class ExampleService {
// you can do this in a controller as well. In fact, I do!
static $inject = ['$http'];
constructor($http) {
this.$http = $http;
}
// Example service function
getData () {
@finalcut
finalcut / AzureDeployWorkerRole.ps1
Last active October 11, 2017 20:41
Powershell Script For Deploying Worker Role to Azure
[CmdletBinding()]
Param(
[Parameter(Mandatory=$True,Position=1)]
[string]$subscription,
[Parameter(Mandatory=$True,Position=2)]
[string]$service,
[Parameter(Mandatory=$True,Position=3)]
[string]$projectName,

Keybase proof

I hereby claim:

  • I am finalcut on github.
  • I am finalcut (https://keybase.io/finalcut) on keybase.
  • I have a public key ASA9kt5b52Uqw1FsfO_0_PcN6Mw9ajWls3FQckEUMhALLgo

To claim this, I am signing this object:

@finalcut
finalcut / oddeven.html
Last active January 29, 2019 13:30
Odd or Even Number Function
<html>
<head>
<script type="text/javascript">
// define a function
function isEven(numberToTest)
{
var minVal = -1000000;
var maxVal = 1000000;
@finalcut
finalcut / strings.html
Created January 29, 2019 13:34
String Interpolation and String Concatenation Examples in javascript
<html>
<head>
<script type="text/javascript">
// define a couple strings
var myString = 'first part';
var myOtherString = 'last part';
// concatenate the strings with a space in the middle
var myLastString = myString + ' ' + myOtherString;
@finalcut
finalcut / arrays.html
Created January 31, 2019 00:46
Some basic array information
<html>
<head>
<script type="text/javascript">
// better way to create an array
// its easier and less prone to mistakes
var betterArray = ['summer','fall'];
//console.log(betterArray);
//console.table(betterArray);
@finalcut
finalcut / random_assign.html
Created February 4, 2019 22:16
randomly assign a task to a random person
<html>
<head>
<script type="text/javascript">
// random number will return
// an integer (whole number) between 0 and maxValue-1
// so, if you have an array of six elements and you want
// a random index value to find a value in that array
// you'd pass in the array length of six and this would
// return a value between 0 and 5