Skip to content

Instantly share code, notes, and snippets.

...
<head>
...
<script src="//ajax.googleapis.com/ajax/libs/jquery/2.0.0/jquery.min.js"></script>
...
<script src="/javascripts/utils.js"></script>
</head>
...
@rcmdnk
rcmdnk / a.rb
Created December 15, 2014 18:05
## -- Misc Configs -- ##
stash_dir = "_stash" # directory to stash posts for speedy generation
full_stash_dir = "#{source_dir}/#{stash_dir}" # full path for stash dir
stash_root_dir = "_stash_root" # directory to stash pages (in /source/)
full_stash_root_dir = "#{source_dir}/#{stash_root_dir}" # full path for stash_root dir
root_stashes = ['Your-Page'] # directories to be stashed in /source/
# usage rake isolate[my-post]
desc "Move all other posts than the one currently being worked on to a temporary stash location (stash) so regenerating the site happens much more quickly."
@rcmdnk
rcmdnk / a.cxx
Created December 15, 2014 19:03
#include <iostream>
for(int i=0;i<10;i++){
std::cout << "codeblock" << std::endl;
}
diff --git a/.themes/octogray b/.themes/octogray
index 69e224c..a519ddb 160000
--- a/.themes/octogray
+++ b/.themes/octogray
@@ -1 +1 @@
-Subproject commit 69e224c5def49917f7fe5527532f8cb50614e81f
+Subproject commit a519ddbdb6a3b40e48ef7713c3be5d15f853b880
@rcmdnk
rcmdnk / a.sh
Created December 15, 2014 20:21
# Execution part {{{
_s_is_exec=1
_sf_check_args_first () { # {{{
while [ $# -gt 0 ];do
case $1 in
"-h"|"-N"|"-m"|"-p"|"-F"|"-v" ) _s_is_exec=2;shift;;
"-n" ) _s_is_exec=0;shift;;
"-c" ) _SENTAKU_CHILD=1;shift;;
* )break;;
esac
@rcmdnk
rcmdnk / a.js
Created December 16, 2014 09:28
jQuery(function($){
$(document).on('copy', function(e) {
var selected = "";
if (typeof window.getSelection != "undefined") {
var sel = window.getSelection();
if (sel.rangeCount) {
var container = document.createElement("div");
for (var i = 0, len = sel.rangeCount; i < len; ++i) {
container.appendChild(sel.getRangeAt(i).cloneContents());
}
@mixin collapse-sidebar {
float: none;
width: auto;
clear: left;
margin: 0;
padding: 0 $pad-medium 1px;
background-color: lighten($sidebar-bg, 2);
border-top: 1px solid lighten($sidebar-border, 4);
section {
&.odd, &.even { float: left; width: 48%; }
@rcmdnk
rcmdnk / a.js
Created December 16, 2014 09:41
2
3
4
5
6
7
8
9
10
@rcmdnk
rcmdnk / a.py
Created December 16, 2014 09:56
#!/usr/bin/env python
#Copyright (c) 2013 rcmdnk
import os
import sys
import httplib2
from oauth2client.file import Storage
from oauth2client.tools import run
@rcmdnk
rcmdnk / small
Last active August 29, 2015 14:11
small