This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<a data-tbd-button href="#" | |
data-title="Coffee for 10" | |
data-description="I think we've been here before." | |
data-partner-name="Dinner Giver" | |
data-partner-url="http://dinnergiver.com" | |
data-image-url="https://dwk82zdbcdwah.cloudfront.net/api/file/om59hsUsTOusnbYdtlig" | |
data-style="false">Go with friends</a> | |
<script type="text/javascript" src="https://d3ex2n86wt9tx5.cloudfront.net/v1.js"></script> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<a data-title="Team Lunch" | |
data-description="Time for that weekly team lunch." | |
data-place-name-0="Dove & Olive" data-place-address-0="156 Devonshire St, Surry Hills NSW 2010" | |
data-place-name-1="City Edge Cafe" data-place-address-1="74-80 Reservoir St, Surry Hills NSW 2010" | |
class="tbd-button" href="#">Go with friends</a> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script type="text/javascript"> | |
(function() { | |
'use strict'; | |
var openModal = function() { | |
var times = [ | |
theBestDay.widget.createTimeChoice({start: 1410401585, timezone: 'Australia/Sydney'}), | |
theBestDay.widget.createTimeChoice({start: 1410574428, timezone: 'Australia/Sydney'}) | |
]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE> | |
<html> | |
<head> | |
</head> | |
<body> | |
<a id="btn" href="#">Create Comment</a> | |
<script type="text/javascript"> | |
var btn = document.querySelector('#btn'); | |
btn.addEventListener('click', function(e) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
~$ curl -I https://ash.ms/ | |
curl: (35) error:14077458:SSL routines:SSL23_GET_SERVER_HELLO:reason(1112) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class PostsController | |
def create | |
@post = Post.new post_params | |
@post.save | |
respond_with @post | |
end | |
private | |
def post_params |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
real_user = FactoryGirl.create(:user) | |
mock_user = SimpleMock.new user | |
mock_user.expect :email, "[email protected]" | |
real_user.email # => "[email protected]" | |
mock_user.email # => "[email protected]" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def create | |
project = Decorate1.new project | |
project = Decorate2.new project | |
project.save | |
respond_with project | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class RunOperationJob | |
def initialize branch | |
@branch = branch | |
end | |
def perform | |
unless branch.any_executing_operations? | |
branch.run_oldest_queued_operation | |
end | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Sugar Library v1.3.9 | |
* | |
* Freely distributable and licensed under the MIT-style license. | |
* Copyright (c) 2013 Andrew Plummer | |
* http://sugarjs.com/ | |
* | |
* ---------------------------- */ | |
(function(){var k=true,l=null,n=false;function aa(a){return function(){return a}}var p=Object,q=Array,r=RegExp,s=Date,t=String,u=Number,v=Math,ba=p.prototype.toString,ca=typeof global!=="undefined"?global:this,da={},ea=p.defineProperty&&p.defineProperties,x="Array,Boolean,Date,Function,Number,String,RegExp".split(","),ga=fa(x[0]),ha=fa(x[1]),ia=fa(x[2]),y=fa(x[3]),A=fa(x[4]),B=fa(x[5]),C=fa(x[6]); | |
function fa(a){var b,c;if(/String|Number|Boolean/.test(a))b=a.toLowerCase();c=a==="Array"&&q.isArray||function(d){if(b&&typeof d===b)return k;return ba.call(d)==="[object "+a+"]"};return da[a]=c}function ja(a){if(!a.SugarMethods){ka(a,"SugarMethods",{});D(a,n,n,{extend:function(b,c,d){D(a,d!==n,c,b)},sugarRestore:function(){return la(a,arguments,function(b,c,d){ka(b,c,d.method)})},sugarRevert:function(){return la(a,argume |