This file contains 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
1) Users::RegistrationsController should create a new user | |
Failure/Error: expect(assigns(:user).send(key)).to eq(key) | |
expected: :first_name | |
got: "cum" | |
(compared using ==) | |
Diff: | |
@@ -1,2 +1,2 @@ |
This file contains 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
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
# All Vagrant configuration is done below. The "2" in Vagrant.configure | |
# configures the configuration version (we support older styles for | |
# backwards compatibility). Please don't change it unless you know what | |
# you're doing. | |
Vagrant.configure(2) do |config| | |
# The most common configuration options are documented and commented below. | |
# For a complete reference, please see the online documentation at |
This file contains 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
2 Devices A and B, they both receive a push notification at the same time, | |
which triggers a fetch of an object on a remote server, and store the content | |
inside a coredata icloud enabled DB. The object has a PID stored on the remote | |
server. | |
You end up with 2 entries: one fetched on the remote server, one synced | |
from the other device through coredata sync. | |
Both devices have different NSManagedID for the same entries (you can't | |
automatically remove the most recent one based one it), the only thing you |
This file contains 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
From: XXX <XXX@sportsdirect.com> | |
To: YYY | |
Subject: Karrimor Links | |
Hello Fabien, | |
My name is XXX and I am responsible for the website www.karrimor.co.uk. | |
I am contacting you as the following link point towards the Karrimor website: |
This file contains 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
<link href="http://ton_url_perso" rel="author" /> | |
<meta content="@processone" name="twitter:site" /> | |
<meta content="http://static..../image.jpg" name="twitter:image" /> | |
<meta content="1100" name="twitter:image:width" /> | |
<meta content="1093" name="twitter:image:height" /> | |
<meta content="689541045" property="fb:admins" /> | |
<meta content="Sea Beyond 2014" property="og:title" /> | |
<meta content="Sea Beyond is a technical event that explores the future of real-time technologies. This year we focus on mobile chat and push notifications." property="og:description" /> |
This file contains 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 Foo | |
def initialize | |
@callbacks = {} | |
end | |
def on(type, &block) | |
@callbacks[type] = block | |
end | |
def callback(type, *args) |
This file contains 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
export RUBY_HEAP_MIN_SLOTS=1250000 | |
export RUBY_HEAP_SLOTS_INCREMENT=100000 | |
export RUBY_HEAP_SLOTS_GROWTH_FACTOR=1 | |
export RUBY_GC_MALLOC_LIMIT=30000000 | |
export RUBY_HEAP_FREE_MIN=12500 |
This file contains 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
import Cocoa | |
import Foundation | |
var options = Dictionary<String, AnyObject>() | |
options["send_at"] = "foobar" | |
var foo : AnyObject = options["send_at"]! | |
var foo2 : String = options["send_at"] as String |
This file contains 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
import Cocoa | |
var options = Dictionary<String, AnyObject?>() | |
options["body"] = "something" | |
var body = options["body"] as String? |
This file contains 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
import Cocoa | |
var options = Dictionary<String, AnyObject?>() | |
options["body"] = "something" | |
// Working | |
if let body : AnyObject = options["body"]! { | |
body | |
} |