# install system dependencies: ffi and ssl
sudo yum install libffi-devel # assumming openssl-devl is installed.
# clone project
git clone https://github.com/nprapps/quotable.git
cd quotable
- https://saml.github.io
first inserting documents like: | |
db.businesses.insert({tags: ['A']}) | |
businesses@sam-HP-Z400> db.businesses.getIndexes() | |
[ | |
{ | |
"v" : 1, | |
"key" : { |
<%-- | |
Copyright 1997-2008 Day Management AG | |
Barfuesserplatz 6, 4001 Basel, Switzerland | |
All Rights Reserved. | |
This software is the confidential and proprietary information of | |
Day Management AG, ("Confidential Information"). You shall not | |
disclose such Confidential Information and shall use it only in | |
accordance with the terms of the license agreement you entered into | |
with Day. |
//this is good | |
fn main() { | |
let x:uint = 2; | |
let msg = match x { | |
0 => "zero", | |
1 | 2 => "haha", | |
1..2 => "hehe", | |
_ => "#yolo" | |
}; |
"use strict" | |
//node --harmony binarysearch.js | |
// Input: sorted array | |
// Output: binary search tree | |
// | |
// wtf is a binary search tree? | |
// let me explain lols. | |
// |
4 | |
2 6 | |
1 3 5 7 | |
0 | |
remove 4: | |
3 | |
1 6 |
( A Story of a Provencal Shepherd ) | |
When I was a shepherd on the Luberon, I did not see my friends for weeks. I was alone in the pasture with my dog Labri. From time to time, there passed the hermit of Mont-de-I'Ure searching with a sun-burned face of the people of Piemont. | |
They were simple , artless people, silent because they were for so long alone, not interested in talking and without any knowledge of what was being discussed in villageds and towns. Therefore, every two weeks, when I heard on the mountain road the bells of a mule from our farm carrying two weeks' provinsions, and saw the head of the farmer's boy or the reddish-brown hood of the aunt, Norade, appearing over the hill, I felt very happy. They told me the news of the low country, of baptisms, and marriages; but what interested me most was the news about the daughter of my master,our lady Stephanette. the most beautiful girl for miles around. Pretending indifference, I asked them if she had often visited festivals or vigils o |
( A Story of a Provencal Shepherd )
When I was a shepherd on the Luberon, I did not see my friends for weeks. I was alone in the pasture with my dog Labri. From time to time, there passed the hermit of Mont-de-I'Ure searching with a sun-burned face of the people of Piemont.
They were simple , artless people, silent because they were for so long alone, not interested in talking and without any knowledge of what was being discussed in villageds and towns. Therefore, every two weeks, when I heard on the mountain road the bells of a mule from our farm carrying two weeks' provinsions, and saw the head of the farmer's boy or the reddish-brown hood of the aunt, Norade, appearing over the hill, I felt very happy. They told me the news of the low country, of baptisms, and marriages; but what interested me most was the news about the daughter of my master,our lady Stephanette. the most beautiful girl for miles around. Pretending indifference, I asked them if she had often visited festivals or vigils o
#!/bin/bash | |
#~/.git_template/hooks/commit-msg | |
[[ "" != "$(grep -e '[A-Z]\+-[0-9]\+' "$1")" ]] || { | |
cat "$1" | |
echo >&2 "ERROR: No Jira ticket." | |
exec < /dev/tty | |
read -r -p "Proceed? [Yn]> " answer |
DICT = { | |
1: 'one', | |
2: 'two', | |
3: 'three', | |
4: 'four', | |
5: 'five', | |
6: 'six', | |
7: 'seven', | |
8: 'eight', | |
9: 'nine', |