Skip to content

Instantly share code, notes, and snippets.

View locks's full-sized avatar
🌟
Ember Polaris

Ricardo Mendes locks

🌟
Ember Polaris
View GitHub Profile
@locks
locks / mute_fish.markdown
Created September 1, 2012 00:07
Mute Fish (short story)

Mute Fish

Someone special

There aren't many people that are as famous as this story's central character. His birth, life, and death, are surrounded in the mystery that you'd come to expect from word of mouth storytelling, crowd hype and over two thousand years of distorted human history.

He, being son of who he was, could speak freely to animals telepathically and though there were many different languages in the animal kingdom, he understood them all. Why this is important will soon be revealed, but first let's go back to a special turning point in his life.

And then there were plenty

He stood atop a gently descending hill, numerous followers gathered round him waiting to hear his words, hungry for a higher knowledge to shed light into their lives. He addressed them, as eloquently as ever and their spirits rose, feeling a slight hint of a better tomorrow in the burning sun hanging over their heads. But for all the nourishment that his words brought to the spirit, bellies were empty and strength was

@locks
locks / dabblet.css
Created November 6, 2012 09:12 — forked from Daniel-Hug/dabblet.css
A "deeper" indented text effect with the :before and :after pseudo-elements.
/**
* A "deeper" indented text effect with the :before and :after pseudo-elements.
*/
html, body {
height: 100%;
}
body {
margin: 0;
(apple
(music
(product iPod)
(product iTunes))
(computers
(product iMac)
(product [Mac mini]))
(phones
(product iPhone))
(dishwashers))
@locks
locks / h2g2.txt
Created January 14, 2013 18:39
h2g2
This planet has — or rather had — a problem, which was this: most of the
people on it were unhappy for pretty much of the time. Many solutions were
suggested for this problem, but most of these were largely concerned with the
movements of small green pieces of paper, which is odd because on the whole
it wasn't the small green pieces of paper that were unhappy.

Hi,

I want to add [documentcloud/underscore-contrib][1] to Bower, but I'm not sure what is the best way to go about it.
Could you provide some guidance please? My current effort is at [locks/underscore-contrib-shim][3].

I have checked components/underscore and a few other repositories to see common patterns, but there are a few considerations:

  • The library maintainer prefers to distribute the file separately, so the user can require just what he needs.
  • For the node.js package [this was the solution developed][2].
  • I also saw on an Issue that you would prefer there to be a 'built' file.
(->> (slurp (nth *command-line-args* 1))
clojure.string/split-lines
sort
(clojure.string/join "\n")
(spit (nth *command-line-args* 2)))
{
"_links" : {
"my:user" : {
"href" : "http://dev-nlife.ndrive.com/my-api/users/{user_id}"
},
"self" : {
"href" : "http://dev-nlife.ndrive.com/my-api"
}
}
}
@locks
locks / common.php
Created January 3, 2014 13:57
F-Zero Central code snippet (used on Ghost blog)
<?php
if (@ini_get('register_globals') == '1' || strtolower(@ini_get('register_globals')) == 'on')
{
// PHP4+ path
$not_unset = array('HTTP_GET_VARS', 'HTTP_POST_VARS', 'HTTP_COOKIE_VARS', 'HTTP_SERVER_VARS', 'HTTP_SESSION_VARS', 'HTTP_ENV_VARS', 'HTTP_POST_FILES', 'phpEx', 'phpbb_root_path');
// Not only will array_merge give a warning if a parameter
// is not an array, it will actually fail. So we check if
// HTTP_SESSION_VARS has been initialised.