Skip to content

Instantly share code, notes, and snippets.

Phil McClure overture8

Block or report user

Report or block overture8

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View plivo-nav-commands.xml
<?xml version="1.0" encoding="UTF-8"?>
<DTMF async="false">wwwwww1wwwwww6"></DTMF>
View twilio-nav-commands.xml
<?xml version="1.0" encoding="UTF-8"?>
<Play digits="wwwwww1wwwwww6"></Play>
<Gather action="/url">
<Say loop="1000">Please press 1 for customer information</Say>
View meteor-must-knows.markdown
  • Meteor apps, by default, have an insecure package. It's best to keep this in at the start to make development easier but ulltimately this will need to be removed and secure operation need to be added manually.

  • Same with a package called autopublish. This publishs all data up to the clients automatically. Ultimately this needs to be removed and publish/subscribe needs to be managed manually.

  • Meteor Methods can be used to make things more secure. Meteor methods use RPC calls to methods defined on the server. The nice thing is, you also define them on the client. So, when you call a meteor method it executes on the client and the server - the client returns instantly then, once the server returns, if there's a difference, it will patch up the client. (This is latency compensation).

  • As mentioned before, some things are defined on the client, some are defined on the server, and some are defined on the server and the client. It's a bit hard to get you're head around this at the st

overture8 / 0_reuse_code.js
Last active Aug 29, 2015
Here are some things you can do with Gists in GistBox.
View 0_reuse_code.js
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
View route_month_urls.rb
map.connect 'archives/:year/:month',
:controller => 'posts',
:action => 'find_by_date',
:year => /\d{4}/,
:month => /(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/
View to_param_url.rb
def to_param
"#{id}-#{title.gsub(/[^a-z0-9]+/i, '-')}"
View override_method.rb
class Report
def create_report
# Left blank, sub-classes will implement this
class XmlReport < Report
def create_report
puts "I am an Xml Report"
View using_abstraction.rb
class ReportGenerator
def print_report(report_type)
View assoc_object.rb
user = User.find(1)
user_orders = user.orders
View gravatar_helper.rb
require 'md5'
module CommentsHelper
def gravatar_url_for(email = null, size = 80)
hash = MD5::md5(email.downcase)
image_src = "{hash}?s=#{size}"
You can’t perform that action at this time.