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
timezone('Australia/Perth').localize(datetime(2016, 1, 1, 10, 00)) # 10AM is kept and unchanged |
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
Never share a class between 2 styles: | |
``` | |
.form{ | |
width: auto; | |
} | |
.side.form{ | |
width: 100%; | |
} | |
``` | |
Do instead |
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
au! BufRead,BufNewFile *.module set filetype=php | |
au! BufRead,BufNewFile *.ctp set filetype=html | |
command W w | |
command E e | |
command SSFS syntax sync fromstart | |
noremap Q <Esc> | |
noremap q <Esc> | |
set iskeyword-=_ | |
set iskeyword-=- | |
"au Syntax python source ~/.vim/syntax/mine.vim |
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
# To run person.py, simply do the following on the command line: | |
# python person.py | |
# | |
# NOTE! | |
# This example just demonstrates how to do functions and class objects. | |
# It does NOT demonstrate which way is better. | |
############ | |
# Function # | |
############ |
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
{:require [myproject.app]} |
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
(set-env! :target-path "static" | |
:source-paths #{"src"} | |
:dependencies '[[org.clojure/clojure "1.7.0"] | |
[org.clojure/clojurescript "1.7.170" :scope "provided"] | |
[org.clojure/core.async "0.1.346.0-17112a-alpha"] | |
[com.cemerick/piggieback "0.2.1" :scope "test"] | |
[weasel "0.7.0" :scope "test"] | |
[cljs-ajax "0.3.14"] | |
[datascript "0.13.3"] | |
[funcool/cuerdas "0.6.0"] |
NewerOlder