Skip to content

Instantly share code, notes, and snippets.

View dreftymac's full-sized avatar
💭
__

Dreftymac dreftymac

💭
__
View GitHub Profile
@dreftymac
dreftymac / multiple_ssh_setting.md
Created November 9, 2015 19:37 — forked from jexchan/multiple_ssh_setting.md
Multiple SSH keys for different github accounts

Multiple SSH Keys settings for different github account

create different public key

create different ssh key according the article Mac Set-Up Git

$ ssh-keygen -t rsa -C "your_email@youremail.com"
@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
@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 {
@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
@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