Skip to content

Instantly share code, notes, and snippets.

Avatar

Michael Cook entozoon

View GitHub Profile
View josh-device.ino
#include "DigiKeyboard.h" // These two are modified from the originals to get the caps lock functionality.
#include "hidkeys.h"
int myDebugLevel = 0;
int delayLevel = 250;
//-------------------------------------------------------------
void setup() {
pinMode(1, OUTPUT); // BuiltIn LED as output
DigiKeyboard.sendKeyStroke(
0); // Evidently this helps at the start of digispark sketches.
@entozoon
entozoon / pointyprism.c
Created Nov 24, 2016
Pointy Prism - RobotC Lego NXT code
View pointyprism.c
void makeCircle(int _cx,int _cy,int _rad) {
int l=_cx-_rad;
int r=_cx+_rad;
int u=_cy+_rad;
int d=_cy-_rad;
nxtFillEllipse (l, u,r, d);
}
void eraseCircle(int _cx,int _cy,int _rad) {
int l=_cx-_rad;
int r=_cx+_rad;
@entozoon
entozoon / SassMeister-input.scss
Last active Oct 21, 2015
Generated by SassMeister.com.
View SassMeister-input.scss
// ----
// Sass (v3.4.14)
// Compass (v1.0.3)
// ----
/*!
Grid CSS compiled by evo_grid.scss
*/
$grid-gutter-width: 20px;
$screen-sm-min: 768px;
@entozoon
entozoon / SassMeister-input.scss
Created Jun 4, 2015
Generated by SassMeister.com.
View SassMeister-input.scss
// ----
// libsass (v3.2.4)
// ----
.foo {
&, .bar {
display: block;
}
}
@entozoon
entozoon / SassMeister-input.scss
Created Jun 4, 2015
Generated by SassMeister.com.
View SassMeister-input.scss
// ----
// libsass (v3.2.4)
// ----
$colourNames: "primary" "secondary" "tertiary";
$colourValues: #f00, #0f0, #00f;
@for $i from 0 to length($colourNames) {
.color--#{nth($colourNames, $i+1)} {
color: nth($colourValues, $i+1);
@entozoon
entozoon / SassMeister-input.scss
Last active Aug 29, 2015
Generated by SassMeister.com.
View SassMeister-input.scss
// ----
// Sass (v3.4.12)
// Compass (v1.0.3)
// ----
.cup {
$cup-colour: #0000ff; // variables have scope!
color: $cup-colour;
&__milk { // __ describes an element contained within it's parent
@entozoon
entozoon / SassMeister-input.scss
Created Jan 20, 2015
Generated by SassMeister.com.
View SassMeister-input.scss
// ----
// Sass (v3.4.9)
// Compass (v1.0.1)
// ----
$cup-colour: #0000ff;
.cup {
color: $cup-colour;
@entozoon
entozoon / SassMeister-input.scss
Created Sep 29, 2014
Generated by SassMeister.com.
View SassMeister-input.scss
// ----
// Sass (v3.3.14)
// Compass (v1.0.1)
// ----
// m.ichael.co.uk 2014
$colourNames: primary secondary tertiary;
$colourValues: #BADA55 #501337 #8008EE;