Skip to content

Instantly share code, notes, and snippets.

@badlydrawnrob
badlydrawnrob / _anki-theme-missing-stripped-output.md
Last active January 19, 2024 22:04
Anki Theme Simple Card Data: compile with `pandoc ./anki-them-simple-output.md -o ./simple-data.html`
# Some handy snippets for Cardinal Stylus framework
@badlydrawnrob
badlydrawnrob / _material-design
Last active May 26, 2017 14:42
Material Design
# Some handy Stylus snippets for Material Design
- https://github.com/badlydrawnrob/cardinal-material
@badlydrawnrob
badlydrawnrob / python-symbols.md
Created November 6, 2016 19:15
Learn Python the Hard Way

Python symbols

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
@badlydrawnrob
badlydrawnrob / _form.less
Last active December 7, 2023 15:19
Counselling Anywhere search results folder
// 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 ->
@badlydrawnrob
badlydrawnrob / .editorconfig
Last active December 13, 2015 20:47
EditorConfig is awesome: http://EditorConfig.org
# editorconfig.org
root = true
[*]
indent_style = tab
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
@badlydrawnrob
badlydrawnrob / .gitignore_global
Last active February 6, 2019 19:22
Global Git Ignore file
# 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(
@badlydrawnrob
badlydrawnrob / forms.less
Created February 6, 2013 01:49
Less: Basic forms
//
//
// Forms
// ====================================================================
form {
margin: 0 0 @line-height-base;
}
label {
display: block;