Skip to content

Instantly share code, notes, and snippets.

View toddanglin's full-sized avatar

Todd Anglin toddanglin

View GitHub Profile
@toddanglin
toddanglin / kendo.lessy.css.less
Created September 20, 2011 21:01
Kendo UI Beta 1 LESS CSS Theme
/* LESS Powered Kendo theme*/
@activeColor: black;
@hoverColor: yellow;
@selectedColor: white;
@errorColor: red;
@disabledColor: gray;
@borderColor: red;
@activeBorderColor: blue;
@toddanglin
toddanglin / blinkTimer.js
Last active December 13, 2015 20:29
A simple NodeJS timer script for the blink(1) USB status light. The script accepts a duration (in minutes) + a warning time (in minutes or seconds) + a "flash" time (in minutes or seconds) via the command line. For example: node blinkTimer.js duration=10,warn=2,flash=1 This command will display a green light first. At 5 minutes (automatic half-w…
//////////////////////////////////////////////////////////////
// blink(1) timer //
// by: @toddanglin //
//////////////////////////////////////////////////////////////
var http = require("http");
console.log("blink(1) Timer Started");
//PROTOTYPE Customizations
@toddanglin
toddanglin / index.html
Created November 1, 2013 16:23
Example Flash video embed code with HTML5 replacement via JavaScript when HTML5 H.264 is available
<!--Embedded somewhere in an HTML file-->
<div id="vidHolder">
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0" width="200" height="200">
<param name="flashvars" value="file=YOUR-VIDEO.mp4" />
<param name="movie" value="content/player.swf" />
<embed src="content/player.swf" width="200" height="200" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" flashvars="file=YOUR-VIDEO.mp4" />
</object>
</div>
@toddanglin
toddanglin / MacSetup
Last active August 29, 2015 14:06
OS X Caskfile
# Make sure we’re using the latest Homebrew
update
# Upgrade any already-installed formulae
upgrade
# Install Cask
install caskroom/cask/brew-cask
# Productivity tools
@toddanglin
toddanglin / Conditional Formula.md
Last active December 1, 2021 14:53
Creating Conditional "Icon Set" in Google Sheets

Conditional formula for "pie wedge" icon set

=IF(ISTEXT('Sheet1'!A1), "*", IF(ISBLANK('Sheet1'!A1),'Sheet1'!A1, IF('Sheet1'!A1 >= 10, IMAGE("https://docs.google.com/drawings/d/1zvwx-srTZlBYQgO1KNdx9-aB1Bw-GRXCfByBPmW0X_M/pub?w=120&h=90"), IF(AND('Sheet1'!A1 < 10,'Sheet1'!A1 >= 7.5), IMAGE("https://docs.google.com/drawings/d/1YlsedUl2v81KzJjGrmDu90f7Kvc-C4sMQ_EnM40Eei4/pub?w=120&h=90"), IF(AND('Sheet1'!A1 < 7.5,'Sheet1'!A1 >= 5), IMAGE("https://docs.google.com/drawings/d/1IFZiKmFa8zv_7XYxBkIrbJOb_QthS5aNP_VPs3sPbx4/pub?w=120&h=90"), IF(AND('Sheet1'!A1 < 5, 'Sheet1'!A1 >= 2.5),IMAGE("https://docs.google.com/drawings/d/1P0ZZ6bbx1xnhaIDKU34XY_rGzfZIcDbN-dycneMlZ1k/pub?w=120&h=90"),IF('Sheet1'!A1 < 2.5,IMAGE("https://docs.google.com/drawings/d/1gTEKIQuY29SB1HCrcDiT31D0ZsaWaUVMBW_ZW5sjGow/pub?w=120&h=90"),'Sheet1'!A1)))))))

NOTE: "Sheet1" should be replaced with whatever the target sheet name actually is in your Google Sheets document

@toddanglin
toddanglin / ReleaseNotes.md
Last active August 29, 2015 14:27
NativeScript 1.2.3 Consolidated Release Notes

NativeScript CLI Changelog

1.2.3 (2015, August 18)

Fixed

  • Fixed #776: tns livesync ios --emulator --watch doesn't sync changes.
  • Fixed #777: tns library add ios does not build correct relative paths to referenced frameworks for mdgenerator.
  • Fixed #779: Command failed due to space in library reference path.

Cross Platform Modules Changelog

@toddanglin
toddanglin / Changelog.md
Last active September 16, 2015 07:08
Consolidated NativeScript 1.3 Changlog

Cross Platform Modules Changelog

1.3.0 (2015, September 16)

Fixed

  • (#680) Fix dialogs module parameter positions and add title as optional parameter
  • (#587) Animation promise in iOS may never be resolved nor rejected.
  • (#581) HtmlView only for single line?
  • (#557) Handlebar syntax in view with comma breaks silently
<Page xmlns="http://www.nativescript.org/tns.xsd" loaded="pageLoaded">
<StackLayout>
<TabView>
<TabView.items>
<TabViewItem title="Test 1">
<TabViewItem.view>
<Label text="Test" />
</TabViewItem.view>
</TabViewItem>
</TabView.items>
.right-toolbar-items,
.left-toolbar-items > span:nth-child(n+2),
.fa.fa-share-alt,
.widget-value .value-number {
display:none;
}
.header-page-tools {
visibility: hidden;
}
@toddanglin
toddanglin / buddybuild_postclone.sh
Created January 25, 2017 02:03
NativeScript BuddyBuild PostClone Step
#!/usr/bin/env bash
# Install NativeScript CLI
echo "******** Install NativeScript CLI *************"
npm install -g nativescript
# NativeScript Ready
echo "******** NativeScript CLI Ready *************"
tns --version