Skip to content

Instantly share code, notes, and snippets.

Jeff Gosling JeffGos

Block or report user

Report or block JeffGos

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
JeffGos / ghost
Last active Feb 8, 2017
Centos init script for ghost blogging tool
View ghost
# ghost - run ghost blogging tool
. /etc/rc.d/init.d/functions
exec="/usr/bin/node index.js >> /var/www/ghost/ghost.log &"
JeffGos / gist:a4418b7e0116a22092c9
Created Aug 7, 2014
Knockoutjs add array of items to observableArray
View gist:a4418b7e0116a22092c9
ko.observableArray.fn.pushAll = function (valuesToPush) {
var underlyingArray = this();
ko.utils.arrayPushAll(underlyingArray, valuesToPush);
return this;
var viewModel = {
valuesArray : ko.observableArray([])
JeffGos / gist:3eef4eb84451c9591897
Last active Aug 29, 2015
Knockoutjs observableArray with null properties in array items
View gist:3eef4eb84451c9591897
<th>Something that could be NULL</th>
<tbody data-bind="foreach: valuesArray">
<td data-bind="text: Name"></td>
You can’t perform that action at this time.