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
>>> a = [1, 2, 3] | |
>>> b = [4, 5, 6] | |
>>> b = a + b | |
>>> b | |
[1, 2, 3, 4, 5, 6] |
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
(defun erc-next-link (arg) | |
"Move point to the ARGth URL, or the end of the buffer if none." | |
(interactive "p") | |
(or (re-search-forward erc-button-url-regexp (point-max) t arg) | |
(goto-char (point-max)))) | |
(defun erc-previous-link (arg) | |
"Move point to the ARGth most recent URL." | |
(interactive "p") | |
(when (looking-at erc-button-url-regexp) |
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
/** | |
* © 2012 Simple Finance Technology Corp. All rights reserved. | |
* Author: Ian Eure <[email protected]> | |
*/ | |
package com.simple.zatoichi | |
import com.simple.simplespec.Spec | |
import org.junit.Test |
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
(defvar upside-down-alist | |
'((?a . ?ɐ) | |
(?b . ?q) | |
(?c . ?ɔ) | |
(?d . ?p) | |
(?e . ?ǝ) | |
(?f . ?ɟ) | |
(?g . ?ƃ) | |
(?h . ?ɥ) | |
(?i . ?ı) |
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
(defun python-find-python-command (&optional root) | |
"Return the python interpreter to use for ROOT." | |
(let ((env-root (local-path | |
(locate-dominating-file | |
(or root default-directory) "bin/python")))) | |
(or (when env-root (concat env-root "bin/python")) | |
python-python-command))) | |
(defun python-find-project-root (&optional start) |
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
The rewriter is a helpful addon. It is rewriting the words from the word | |
list by certain rules and enqueues them to the word buffer. To enable | |
the rewriter use -r and to set up your rules -l: | |
sucrack -r -l AFL wordlist.txt | |
Here is an overview over the rules: | |
rule description original rewritten | |
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
(defroutes listing-routes | |
(GET "/user/:user-uuid" [user-uuid] | |
(list-assets user-uuid))) | |
(defn wrap-dump-req [handler] | |
(fn [req] | |
(prn req) | |
(handler req))) | |
(defroutes main-routes |
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
/** | |
* __ __ | |
* /.-' `-.\ | |
* // \\ | |
* /j_______________j\ | |
* /o.-==-. .-. .-==-.o\ | |
* || )) (( || | |
* \\____// \\____// | |
* `-==-' `-==-' | |
*/ |
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
(defun pdl-agenda () | |
"Switch to my agenda, regenerating it in the process." | |
(interactive) | |
(save-selected-window | |
(pop-to-buffer | |
(prog1 org-agenda-buffer-name | |
(if (get-buffer org-agenda-buffer-name) | |
(org-agenda-redo) | |
(org-agenda nil "a") | |
(org-agenda-day-view)))))) |
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
function up () | |
{ | |
if [ "$1" != "" -a "$2" != "" ]; then | |
local DIR=$1 | |
local TARGET=$2 | |
elif [ "$1" ]; then | |
local DIR=$PWD | |
local TARGET=$1 | |
fi | |
while [ ! -e $DIR/$TARGET -a $DIR != "/" ]; do |