Some useful tools and interesting code
- https://marksheet.io
- Google and @mdo styleguides
# Some handy snippets for Cardinal Stylus framework |
# Some handy Stylus snippets for Material Design | |
- https://github.com/badlydrawnrob/cardinal-material |
Python symbol | Description |
---|---|
print |
print "Something" . print "This", 25 the , allows us to join a string and another string, number or variable together. , also allows us to join things on the same line (space separated): print "this",; print "that" . |
""" |
Can be used as either a code block (wrap with three """ or to print a block of text print """ ) |
== != |
Equal to, Not equal to |
< > <= >= |
Less-than, Greater-than, less-than-equal, greater-than-equal |
+= -= |
Original variable with + or - the value to the right of the symbol. E.g x = 1 so x += 1 is now equal to 2 |
; |
The semi-colon allows us to write commands on one line, e.g variableOne = 1; variable2 = 2 |
// Homepage search ============================= | |
// - #1: Example of column > row stacking: | |
// http://codepen.io/HugoGiraudel/pen/pkwqH | |
// - #2: Remove `overflow:hidden` to align input with button | |
// - #3: flex: 0 1 100%; breaks layout on mobile safari | |
// width: 100% is required for some reason! | |
@selectize-color-border: @color-primary; | |
@selectize-color-item-active-border: @color-primary; | |
@selectize-border-radius: 0; |
# Your init script | |
# | |
# Atom will evaluate this file each time a new window is opened. It is run | |
# after packages are loaded/activated and after the previous editor state | |
# has been restored. | |
# | |
# An example hack to log to the console when each text editor is saved. | |
# | |
# atom.workspace.observeTextEditors (editor) -> | |
# editor.onDidSave -> |
# editorconfig.org | |
root = true | |
[*] | |
indent_style = tab | |
end_of_line = lf | |
charset = utf-8 | |
trim_trailing_whitespace = true | |
insert_final_newline = true |
# Compiled source # | |
################### | |
*.com | |
*.class | |
*.dll | |
*.exe | |
*.o | |
*.so | |
<?php | |
/** | |
* WordPress Query Comprehensive Reference | |
* Compiled by luetkemj - luetkemj.com | |
* | |
* CODEX: http://codex.wordpress.org/Class_Reference/WP_Query | |
* Source: http://core.trac.wordpress.org/browser/tags/3.5.1/wp-includes/query.php | |
*/ | |
$args = array( |