Created by: Jose Quesada
clojure: simplest way to open a file
(slurp "some.txt")
 If the file is small enough and can be held in memory, simplest approach is to use slurp which will return a string containing the content of the file,
Created by: Jose Quesada
clojure: How do you overwrite part of a string?

Strings in clojure are immutable. 

The answer is to create a new string with the old substring replaced by a new substring:

(defn string-splice ([target new offset] (string-splice target new offset (count new))) ([target new offset length] (str (subs target 0 offset) new (subs target (+ offset length)))) )

Created by: Jose Quesada
clojure: How can I extract a portion of a string?
(.substring "Is this not pung?" 3 7)
=> "this"
Created by:
start django project
django-admin.py startproject mysite
Created by: Jose Quesada
duckduckgo search django docs
!dj
Created by: Jose Quesada

What is the result of:

$ git checkout -b iss53

This is shorthand for:

$ git branch iss53

$ git checkout is

Created by: Adrián Ribao
How to watch sphinx docs for changes and recompile them

$ pip install watchdog

$ watchmedo shell-command \

    --patterns="*.txt" \

    --ignore-pattern='_build/*' \

    --recursive \

    --command='make html'

Created by: Adrián Ribao
How to paste the default register into the text being edited

p

Created by: Adrián Ribao
How to close a window in Chrome

window.open('', '_self', '');//bug fix

window.close();

Created by: Jose Quesada
Where are all the data structures stored in R?
In the workspace, by default .Rdata
Created by: Jack Kinsella

which padding is left padding
padding: x x x x

the last

padding: 0 0 0 5px;

# think of this format as a clock starting at 12 and ticking left

Created by: Jack Kinsella

Ruby: How do you get the ID for an object

.object_id

  • There are 5684 results.

You must be logged in to perform this action.

Login now

×

Deck Management

You must be logged in to perform this action.

Login now

Done ×

Deck Management

You must be logged in to perform this action.

Login now

Done ×

Deck Management

You must be logged in to perform this action.

Login now

Done ×

Deck Management

You must be logged in to perform this action.

Login now

Done ×

Deck Management

You must be logged in to perform this action.

Login now

Done ×

Deck Management

You must be logged in to perform this action.

Login now

Done ×

Deck Management

You must be logged in to perform this action.

Login now

Done ×

Deck Management

You must be logged in to perform this action.

Login now

Done ×

Deck Management

You must be logged in to perform this action.

Login now

Done ×

Deck Management

You must be logged in to perform this action.

Login now

Done ×

Deck Management

You must be logged in to perform this action.

Login now

Done ×

Deck Management

You must be logged in to perform this action.

Login now

Done ×