Skip to content

Instantly share code, notes, and snippets.

View dreftymac's full-sized avatar
💭
__

Dreftymac dreftymac

💭
__
View GitHub Profile
@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 / 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 / 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 / 0_reuse_code.js
Created May 8, 2014 23:16
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
<!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 {
# 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:
@dreftymac
dreftymac / bandname
Created June 15, 2015 04:03
bandname limbic resistance
limbic resistance
@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 / .gitattributes
Created October 31, 2015 14:34
Sample Git Attributes File
# Encrypt the repository
# Remove/modify this line if the repository is meant to be open-source
*.* filter=git-crypt diff=git-crypt
.gitattributes !filter !diff
# These files are text and should be normalized (Convert crlf => lf)
*.php text
*.css text
*.js text
*.htm text