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
// | |
// TSTView.m | |
// Test | |
// | |
// Created by James Bryan Graves on 09-02-14. | |
// Copyright (c) 2014 Qardio. All rights reserved. | |
// | |
#import "TSTView.h" |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<style> | |
div { | |
width:100px; | |
height:100px; | |
background:red; | |
position:relative; |
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
// Example Ideedock Requests | |
// - /topic/questions | |
{ | |
id: Utils.generateGUID(), | |
question: 'What the heck am I doing here?', | |
user: authenticatedUser, | |
created: date, | |
time: date, | |
end: new Date(new Date().setDate(date.getDate() + 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
WebSocketStompMock = SockJS; | |
var guid = function() { | |
return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function(c) { | |
var r = Math.random()*16|0, v = c == 'x' ? r : (r&0x3|0x8); | |
return v.toString(16); | |
}); | |
}(); | |
var stream = 'dev.ideedock.com'; | |
var stomp = Stomp.client('http://'+stream+':55674/stomp'); | |
stomp.connect('guest', 'guest', function(x) { |
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
// questions endpoint - /topic/questions | |
{ | |
"id":"b98ea39b-f44e-4f89-b32f-dc450bb84565", | |
"question":"How do we keep birds away from airports?", | |
"user":{ | |
"email":"[email protected]", | |
"id":"500fc8c13eca27796000004a", | |
"name":"jbg", | |
"url":"dev.ideedock.com" | |
}, |
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
WebSocketStompMock = SockJS; | |
var stomp = Stomp.client('http://ideedock.com:55674/stomp'); | |
stomp.connect('guest', 'guest', function(x) { | |
stomp.subscribe('/topic/questions', function(d) { | |
console.log(JSON.parse(d.body).question); | |
}); | |
}); |
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
Solution = Backbone.Model.extend ({ | |
fetchAll: function(options) { | |
var solution = this; | |
var error = false; | |
var errorHandler = function() { | |
error = true; | |
} | |
$.when(solution.comments.fetch({ error: errorHandler }), | |
solution.likes.fetch({ error: errorHandler }), |
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
background-image: -webkit-repeating-linear-gradient(-35deg, #ccc, #ccc 1px, transparent 1px, transparent 6px); |
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
#include <stdio.h> | |
int main() { | |
int i = 0; | |
if(++i) { | |
printf("1\n"); | |
} | |
if(i = 1) { |
NewerOlder