Skip to content

Instantly share code, notes, and snippets.

View finalcut's full-sized avatar

Bill Rawlinson finalcut

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