Skip to content

Instantly share code, notes, and snippets.

View unixsuperhero's full-sized avatar

Joshua Toyota unixsuperhero

View GitHub Profile
#!/usr/bin/env ruby
module A
def self.included(base)
base.include InMethods
end
module InMethods
def mem
@mem ||= []
@unixsuperhero
unixsuperhero / edukate.md
Last active August 6, 2017 21:48
edukate info

NOTE: We can probably skip a step!

If the user is clicking "Get Started!" then why would they have to come back to our page?

Clicking it can send them to an endpoint in our app, that will do all the oauth registering and token generating. Then, that endpoint can redirect to Edukate and we can send that info to Edukate along with all the token/user info.

javascript:(function(){!function(a,b){"object"==typeof module&&"object"==typeof module.exports?module.exports=a.document?b(a,!0):function(a){if(!a.document)throw new Error("jQuery requires a window with a document");return b(a)}:b(a)}("undefined"!=typeof window?window:this,function(a,b){var c=[],d=c.slice,e=c.concat,f=c.push,g=c.indexOf,h={},i=h.toString,j=h.hasOwnProperty,k={},l="1.11.1",m=function(a,b){return new m.fn.init(a,b)},n=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,o=/^-ms-/,p=/-([\da-z])/gi,q=function(a,b){return b.toUpperCase()};m.fn=m.prototype={jquery:l,constructor:m,selector:"",length:0,toArray:function(){return d.call(this)},get:function(a){return null!=a?0>a?this[a+this.length]:this[a]:d.call(this)},pushStack:function(a){var b=m.merge(this.constructor(),a);return b.prevObject=this,b.context=this.context,b},each:function(a,b){return m.each(this,a,b)},map:function(a){return this.pushStack(m.map(this,function(b,c){return a.call(b,c,b)}))},slice:function(){return this.pushStack(d.apply(this,arguments))
#!/usr/bin/env ruby
require 'twilio-ruby'
args = ARGV.clone
person = args.shift
text = args.join ' '
class BaseSms
commit 9d4f4c2b3bd0207bf9a02a4403b3f54cb5bf3ae4
Author: Joshua Toyota <[email protected]>
Date: Wed Dec 19 11:29:58 2012 -0500
autoaudit, with user as an example
diff --git a/app/models/user.rb b/app/models/user.rb
index 0077df0..f29e5d8 100644
--- a/app/models/user.rb
+++ b/app/models/user.rb