Skip to content

Instantly share code, notes, and snippets.

View dreftymac's full-sized avatar
💭
__

Dreftymac dreftymac

💭
__
View GitHub Profile
@dreftymac
dreftymac / VisualCodeGenWorkflows_ascii.txt
Created January 12, 2016 18:56 — forked from jdonson/VisualCodeGenWorkflows_ascii.txt
ASCII Diagram Test: Visual CodeGen Workflows
['SVG DIAGRAMS'] <---- (Derived From) <-- STATE
| |
(via CASE Tools Generate) --> ['Code', 'Configs', 'Tests']
1. What types of state?
2. How does YAML fit in?
3. Can site audits generate diagrams to present to biz?
4. What languages ought we consider including and why?
5. What kind of CASE Tools? https://en.wikipedia.org/wiki/Computer-aided_software_engineering
@dreftymac
dreftymac / tss3_SiteId
Last active December 20, 2015 16:08
tss3_SiteId
## SITE_ID ;; (error-correcting addon)
def tss3_SiteId(row)
if ( false ||
row['tss2_MachineDept']=='cfc' ||
row['tss2_MachineDept']=='chc' ||
row['tss2_MachineDept']=='ctl' ||
row['tss2_MachineDept']=='economics' ||
row['tss2_MachineDept']=='lundquistcollegeofbusiness' ||
row['tss2_MachineDept']=='materialscience' ||
row['tss2_MachineDept']=='schoolofmusicanddance' ||
@dreftymac
dreftymac / DreftymacAddonString
Last active December 20, 2015 02:49
Ruby string expando methods
## main:
## - date: created="Monday, September 10, 2012, 11:13:12 AM"
## last: lastmod="Mon Jun 23 14:20:15 2014"
## desc: |
## Ruby String Addon methods
##
## seealso:
## href="./DreftymacAddonStringTest.rb"
## tymacid://tryruby.myruby.dreftymac.DreftymacAddonString.rb
## https://gist.github.com/dreftymac/6059176
@dreftymac
dreftymac / DreftymacQuikpayString
Last active December 20, 2015 02:39
code library
### ------------------------------------------------------------------------
## {
module DreftymacQuikpayString
## {
module Base
## {
def str_is_not_valid
"__Invalid #{self.to_s}__"
end
@dreftymac
dreftymac / helloworld.php
Last active November 24, 2015 19:43
helloworld.php
<?php
header("Content-Type:text/html; charset=utf-8");
print "hello world";
@dreftymac
dreftymac / tymac_komodo_addon.js
Created August 30, 2015 03:53
tymac_komodo_addon ;; komodo 8 addon library
// <reg-file_info>
// main:
// - date: created="Sat Jan 09 06:05:56 2010"
// last: lastmod="2015-03-20 03:34:17"
// name: tymac_komodo_addon
// license: Attribution-Share Alike ;; http://creativecommons.org/licenses/by-sa/3.0/us/
// contact: dreftymac
// desc: |
// tymac_komodo_addon.js
// general-purpose addon library for use with komodoedit
@dreftymac
dreftymac / bandname
Created June 15, 2015 04:03
bandname limbic resistance
limbic resistance
# default boring output of Psych.dump
---
:response:
:body: ! "{\n \"page\": 1,\n \"results\": [\n \"item\", \"another\"\n ],\n
\ \"total_pages\": 0\n}\n"
:status: 200
:person:
name: Steve
age: 24
:array:
<!doctype html>
<html ng-app="project">
<head>
<title>Angular: Service example</title>
<script src="http://code.angularjs.org/angular-1.0.1.js"></script>
<script>
var projectModule = angular.module('project',[]);
projectModule.factory('theService', function() {
return {