This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Controller; | |
use Orno\Mvc\View\JsonRenderer; | |
class Task | |
{ | |
protected $view; | |
protected $taskid; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name KBMS Script | |
// @description Copy text from articles!!! | |
// @author Lawrence Goldstien ( [email protected] ) | |
// @icon http://csctools.internal.something.net/~lgoldstien/grease/img/kbms.png | |
// @namespace http://www.something.com | |
// @include http://kbms/* | |
// @include http://csctools.internal.something.net/~lgoldstien/beta/grease/tests/* | |
// @updateURL http://csctools.internal.something.net/~lgoldstien/grease/scripts/kbms.user.js | |
// @downloadURL http://csctools.internal.something.net/~lgoldstien/grease/scripts/kbms.user.js |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Log | |
* A class for logging output to a file | |
*/ | |
class Log { | |
public $app; | |
public $content; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Log | |
* A class for logging output to a file | |
*/ | |
class Log { | |
/** | |
* @var string | |
*/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Give Me Tickets | |
// @description All the stock responses and stuff you could possibly need to get working on tickets | |
// @author Lawrence Goldstien ( lgoldstien@*******.co.uk ) | |
// @namespace | |
// @include | |
// @grant none | |
// ==/UserScript== | |
console.log("Gimme Tickets: Starting to load the script"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Tasks - SRP | |
* A task database class that does abide by SRP | |
* @package solid | |
* @author [email protected] | |
*/ | |
class db { | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Tasks - Non-SRP | |
* A task database class that does not abide by SRP | |
* @package solid | |
* @author [email protected] | |
*/ | |
class tasks { | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Twitter Stream | |
# From "Introduction to Data Science" A coursera program with lectures from Bill Howe | |
# You will need to edit the access and consumer credentials to make this application work | |
# Run as follows: python twitterstream.py > output.json | |
import oauth2 as oauth | |
import urllib2 as urllib | |
access_token_key = "<Enter your access token key here>" | |
access_token_secret = "<Enter your access token secret here>" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#HTTP | |
server { | |
listen 80; | |
listen [IPv6]:80 default ipv6only=on; | |
server_name site www.site; | |
access_log /var/www/site/logs/nginx.access.log; | |
error_log /var/www/site/logs/nginx.error.log; |
NewerOlder