Skip to content

Instantly share code, notes, and snippets.

View trendsetter37's full-sized avatar

Javis Sullivan trendsetter37

  • Verizon Media
  • Greenville, SC
View GitHub Profile
<?php echo gangmei_get_the_post_thumbnail_url($post->ID, 'large'); ?>
@trendsetter37
trendsetter37 / cut-the-sticks.lisp
Last active December 13, 2016 16:17
Solution to HackerRank challenge Cut the sticks in Common 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))
@dsugarman
dsugarman / jet_php_api_template.php
Created January 15, 2015 16:01
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
3.store your api calls
Ex: $jet->uploadFile($feed_type, $path);
$jet->processOrdersByStatus('ready');
$jet->apiPUT("/orders/".$JET_ORDER_ID."/acknowledge", $data);
**/
@rubo77
rubo77 / config
Created August 14, 2014 05:49
~/.ssh/config example with selected identity file for a certain server
Host example.org
IdentityFile ~/.ssh/id_rsa
Host *
ForwardAgent no
IdentitiesOnly yes
@piscisaureus
piscisaureus / pr.md
Created August 13, 2012 16:12
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 = git@github.com:joyent/node.git

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: