This file contains hidden or 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
/* | |
http://www.webkit.org/blog/363/styling-scrollbars/ | |
*/ | |
.zF.e-Rb::-webkit-scrollbar { | |
width: 12px | |
} | |
.zF.e-Rb::-webkit-scrollbar-thumb { |
This file contains hidden or 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
; Lisp | |
(defun generate-counter () | |
(let ((memory 0)) | |
(lambda () (incf memory)))) | |
CG-USER(1): (setq fn (generate-counter)) | |
CG-USER(2): (funcall fn) | |
1 | |
CG-USER(3): (funcall fn) | |
2 |
This file contains hidden or 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
;;; === Funkcia na generovaie n-tic ==== | |
(defun gen2 (L &optional i) | |
(if (null L) | |
(list (reverse i)) | |
(mapcan | |
(lambda (x) (gen2 (rest L) (cons x i))) | |
(first L)))) |
This file contains hidden or 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
# Author: Cifro Nix, http://about.me/Cifro | |
# | |
# usage: | |
# ./create-thumbnails.sh | |
# will produce thumbnails with name "<id>.jpg" with size 220x122 | |
# | |
# different size: | |
# ./create-thumbnails.sh 640x360 -big | |
# will produce thumbnails with name "<id>-big.jpg" with size 640x360 |
This file contains hidden or 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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using OpenRTM.Core; | |
using Aldebaran.Proxies; | |
namespace NaoMotionRTC | |
{ |
This file contains hidden or 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
Show hidden characters
[ | |
{ "keys": ["ctrl+d"], "command": "duplicate_line" }, | |
{ "keys": ["ctrl+shift+d"], "command": "run_macro_file", "args": {"file": "Packages/Default/Delete Line.sublime-macro"} }, | |
{ "keys": ["ctrl+shift+k"], "command": "find_under_expand" }, | |
{ "keys": ["alt+w"], "command": "toggle_setting", "args": {"setting": "word_wrap"}, "checkbox": true } | |
] |
This file contains hidden or 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
{* more sexy and Pro *} | |
{if $wp->havePosts} | |
{* more familiar for wp devs & users, but unsexy *} | |
{if have_posts()} |
This file contains hidden or 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
<!doctype html> | |
<head> | |
<title>Stick to top simpe exmaple</title> | |
<style> | |
body{margin:0; padding: 0; font-family: Segoe UI, sans-serif; } | |
#header{ | |
background: #ccc; | |
border: 1px solid #ccc; |
This file contains hidden or 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
<?php | |
/** | |
* Alterantive Funception in PHP | |
* All functions are in the global scope | |
*/ | |
function We(){ | |
echo "We "; | |
function need(){ | |
echo "need "; |
This file contains hidden or 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
<?php | |
/** | |
* Funception in PHP II. | |
*/ | |
function We(){ | |
class need{ | |
function need(){ | |
$o = (object) null; |