Skip to content

Instantly share code, notes, and snippets.

@Zoramite
Zoramite / README
Last active August 29, 2015 14:06
CSP Errors in Chrome Packaged App from Dart Transformer
Example for the discussion on the CPA transformer bug.
https://groups.google.com/a/dartlang.org/d/topic/web/MvEeAN4cJLM/discussion
All files that do not start with pubspec should be moved to a web/ directory. Gist does not allow subdirectories.
@Zoramite
Zoramite / settings.ini
Created June 2, 2015 17:35
Kossel Pro
avoid_crossing_perimeters = 1
bed_shape = circular
bed_size = 240,240
bed_temperature = 70
bottom_clip_amount = 0
bottom_solid_layers = 3
bridge_acceleration = 0
bridge_fan_speed = 100
bridge_flow_ratio = 1
bridge_speed = 20
@Zoramite
Zoramite / readme.md
Last active August 29, 2015 14:22
doTerra Volume History

dōTERRA Wellness Advocate historical volume.

This script is intended to make it easier to retrieve the historical PV, TV, and OV for a wellness advocate. The current system makes it almost impossible to get the historical values past the latest couple of months.

To download a CSV of your historical volumes paste the following into the chrome console when you are logged into the Teams page of the back office.

$('<script src="https://rawgit.com/Zoramite/52a19050a6753b5fb492/raw/volume.js" type="text/javascript"></script>').appendTo($("head"));

Then run the following to download your volume history:

@Zoramite
Zoramite / RailoByteSize.cfm
Created October 22, 2010 04:42
Testing the calculation of the byte size of a string in Railo.
<cfoutput>
<cfset temp = createUUID() />
<div>
UUID: #temp#
</div>
<div>
Size of UUID: #sizeOf(temp)#
</div>
@Zoramite
Zoramite / dynamicCalls.cfc
Created December 15, 2010 18:41
Calling a function on a component dynamically.
<cfcomponent output="false">
<cffunction name="testing" access="public" returntype="string" output="false">
<cfargument name="value" type="string" required="true" />
<cfreturn '<strong>' & arguments.value & '</strong>' />
</cffunction>
</cfcomponent>
@Zoramite
Zoramite / fileDownload.cfm
Created December 16, 2010 05:12
Test downloading a file using http
<cfset source = 'https://github.com/seancorfield/fw1/tarball/v1.2' />
<cfset downloadPath = './' />
<cfset downloadFile = 'test.tar.gz' />
<cfhttp url="#source#" method="get" file="#downloadFile#" path="#downloadPath#" getAsBinary="true" />
@Zoramite
Zoramite / sortableCopy.css
Created January 4, 2011 17:58
Testing the ability to ctrl + drag to copy a sortable element
* {
margin: 0;
padding: 0;
}
ul,
ol {
list-style: none;
}
@Zoramite
Zoramite / datagrid.cfc
Created February 3, 2011 06:58
Railo multiple variables scope bug
<cfcomponent output="false">
<cfscript>
public component function init() {
variables.columns = [];
variables.extend = createObject('component', 'extend').init();
return this;
}
public void function addColumn(struct options = {}) {
@Zoramite
Zoramite / example.htm
Created February 5, 2011 15:27
jQuery snippet to open external links in a new window
<!doctype html>
<html>
<head>
<title>External Links Example</title>
</head>
<body>
<h1>External Links Example</h1>
<div class="newWindow">
<p>
@Zoramite
Zoramite / svnRemove.sh
Created February 6, 2011 18:25
Remove all .svn directories from the current directory and all sub directories.
find . -name ".svn" -exec rm -rf {} \;