We use this to keep track of daily progress on solving problems on 4clojure.
# installing dependencies
yum install python-pip
sudo pip install virtualenv
# setup python2.7
yum install python27
virtualenv -p /usr/bin/python2.7 venv
# required for mysql
- Uses a
iframe
to render the content. Can use explicitwidth
andheight
settings to render the way we want (can be configurable as well) - The good thing is that iframe acts as a sandbox and we can load external js e.g. backbone / jquery which will definitely ease the development.
<!-- iframe generated -->
<iframe width="225" height="570" src="http://meetu.ps/2F9WG8" frameborder="0"></iframe>
<iframe width="650" height="300" src="http://meetu.ps/2F9XJy" frameborder="0"></iframe>
This file contains 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
#!/bin/bash | |
logfile=/var/log/nginx/site-access.log | |
count=20 | |
if [ "$1" != "" ]; | |
then | |
echo "Data for file: $logfile with filter: $1" | |
grep $1 $logfile | awk '{print $1}' | sort | uniq -c | sort -nk1 -r | head -n $count | |
else |
prakhar1989.github.com git/master*
❯ tree _site | pbcopy
_site
├── 404.html
├── CNAME
├── Gemfile
├── Gemfile.lock
├── LICENSE
This file contains 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
/* | |
Changes: | |
1. Best to stick to one unit of measurement either em or px. | |
2. Use max-widths so that you can make your content responsive. | |
3. If you use margin: a b, then top and bottom get a and right left get b. Leads to cleaner rules | |
4. a(:not)(:hover) is not recommended (cross-browser issues) instead use two rules for a and a:hover | |
*/ | |
body { | |
font-family: "Helvetica Neue", Helvetica, sans-serif; | |
margin: 40px auto; |
This file contains 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
// Implements http://rosettacode.org/wiki/24_game | |
// Uses RPN expression | |
use std::io; | |
use std::rand::{task_rng, Rng}; | |
#[cfg(not(test))] | |
fn main() { | |
// generating 4 numbers | |
let mut rng = task_rng(); |
This file contains 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
<?xml version="1.0"?> | |
<project name="orange" description="Project Orange build file" default="help"> | |
<property name="modules_dir" value="/" /> | |
<property name="source.code" value="app/code/" /> | |
<property name="source.design" value="app/design/" /> | |
<property name="source.js" value="js/" /> | |
<property name="source.skin" value="skin/" /> | |
<property name="source.etc" value="app/etc/" /> | |
<property name="source.holding" value="holding/" /> | |
<property name="source.lib" value="lib/" /> |
This file contains 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
{ | |
"crosswordId": "sdhbfsdlbvshv", | |
"packId": "sdkcdjsknckjdsn", | |
"gridSize": 10, | |
"backgroundColor": "#FF000000", | |
"cellNormalColor": "#FFFFFFFF", | |
"cellSelectedColor": "#FF123456", | |
"across": [ | |
{ | |
"clueId": "dfkfvfjk", |