Skip to content

Instantly share code, notes, and snippets.

@mritzco
mritzco / snippets.cson
Last active January 18, 2018 08:59
Snippets for atom
# Your snippets
#
# Atom snippets allow you to enter a simple prefix in the editor and hit tab to
# expand the prefix into a larger code block with templated values.
#
# You can create a new snippet in this file by typing 'snip' and then hitting
# tab.
#
# An example CoffeeScript snippet to expand log to console.log:
#
@mritzco
mritzco / snippets.conf
Created April 26, 2016 06:16
Geany snippets
# Geany's snippets configuration file
#
# use \n or %newline% for a new line (it will be replaced by the used EOL char(s) - LF, CR/LF, CR).
# use \t or %ws% for an indentation step, it will be replaced according to the current document's indent mode.
# use \s to force whitespace at beginning or end of a value ('key= value' won't work, use 'key=\svalue').
# use %key% for all keys defined in the [Special] section.
# use %cursor% to define where the cursor should be placed after completion. You can define multiple
# %cursor% wildcards and use the "Move cursor in snippet" to jump to the next defined cursor
# position in the completed snippet.
# You can define a section for each supported filetype to overwrite default settings, the section
@mritzco
mritzco / instructions.md
Last active June 21, 2016 13:51
Ubuntu phablet (BQ M10)

###Making the tablet useful

####Enabling apt-get and installing normal apps Follow this guide

uname -a
lsb_release -a
lscpu
cat /proc/cpuinfo
mkdir .ssh
@mritzco
mritzco / floreant_reports.sql
Last active February 3, 2017 09:17
FloreantPOS order reports
/* makes a small report of all tickets with details on orders */
SELECT DISTINCT
TICKET.ID,
CREATE_DATE,
TICKET.TOTAL_PRICE,
TICKET.PAID_AMOUNT,
CAST( VOIDED AS UNSIGNED) AS VOIDED,
PAYMENT_TYPE, (SELECT GROUP_CONCAT( CATEGORY_NAME, ".", ITEM_NAME,": ", ITEM_PRICE SEPARATOR ', ')
FROM TICKET_ITEM
WHERE TICKET_ITEM.TICKET_ID = TICKET.ID
@mritzco
mritzco / .lesshintrc
Last active February 24, 2017 08:33
Using NPM as a build tood
{
"fileExtensions": [".less", ".css"],
"excludedFiles": ["src/less/*.less"],
"spaceAfterPropertyColon": {
"enabled": true,
"style": "one_space" // Comments are allowed
},
"maxCharPerLine": 999999,
"spaceAfterPropertyColon": "no_space",
"urlQuotes": false,
@mritzco
mritzco / clock.css
Created March 10, 2017 09:28
SVG Clock with duration
/* FROM LESS */
svg.clock {
background: #ffffff;
width: 120px;
height: 120px;
/* Don't define height - not overridable */
fill: none;
/* time markers */
/* Clock face and center */
}
@mritzco
mritzco / install.md
Last active September 2, 2022 00:11
Running AR.js sample locally
0x0a47bDaf1b1FD7E79273e286717Cb001cc05Bc48
@mritzco
mritzco / triangle.js
Last active February 23, 2018 15:55
Calculating triangles
// http://www.teacherschoice.com.au/Maths_Library/Trigonometry/triangle_given_3_points.htm
const triangle = {
corners: {},
angles:{},
sides: {},
create: function (a,b,c,d,e,f) {
this.corners.A = [ a, b ],
this.corners.B = [ c, d ],
this.corners.C = [ e, f ]
return this;
@mritzco
mritzco / scad
Created February 27, 2018 10:12
HDD holder
// hard disk holder
module stand(
wall=3,
height=20,
dw=20,
dd=80
) {
wall2 = wall*2;