Skip to content

Instantly share code, notes, and snippets.

Javis Sullivan trendsetter37

Block or report user

Report or block trendsetter37

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
View jet_php_api_template.php
/** To use this just:
1. put in your api information at the top
2. store/retreive your API token in the specified locations your api calls
Ex: $jet->uploadFile($feed_type, $path);
$jet->apiPUT("/orders/".$JET_ORDER_ID."/acknowledge", $data);
trendsetter37 / cut-the-sticks.lisp
Last active Dec 13, 2016
Solution to HackerRank challenge Cut the sticks in Common Lisp
View cut-the-sticks.lisp
;; Enter your code here. Read input from STDIN. Print output to STDOUT
(defun space-split (string)
(loop for start = 0 then (1+ finish)
for finish = (position #\Space string :start start)
collecting (parse-integer (subseq string start finish))
until (null finish)))
(defun min-from-list (list &optional (default 1000))
(reduce #'min list :initial-value default))
rubo77 / config
Created Aug 14, 2014
~/.ssh/config example with selected identity file for a certain server
View config
IdentityFile ~/.ssh/id_rsa
Host *
ForwardAgent no
IdentitiesOnly yes
View echo-thumbnail-url.php
<?php echo gangmei_get_the_post_thumbnail_url($post->ID, 'large'); ?>
piscisaureus /
Created Aug 13, 2012
Checkout github pull requests locally

Locate the section for your github remote in the .git/config file. It looks like this:

[remote "origin"]
	fetch = +refs/heads/*:refs/remotes/origin/*
	url =

Now add the line fetch = +refs/pull/*/head:refs/remotes/origin/pr/* to this section. Obviously, change the github url to match your project's URL. It ends up looking like this:

You can’t perform that action at this time.