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 MatchConversations | |
def self.query(current_user) | |
Match.find_by_sql(<<-SQL | |
SELECT DISTINCT * FROM ( | |
SELECT | |
matches.*, | |
messages.created_at as messages_created_at, | |
messages.read_at as messages_read_at, | |
messages.reading as messages_reading, | |
dense_rank() OVER ( |
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
How to Contribute Code to the Glassbreakers App | |
--------------- | |
1. Create new local branch | |
2. Push to origin/branch | |
3. Add a clean title that includes Trello card number and mark label as in_progress | |
4. Add a description | |
- what was accomplished | |
- why it was needed | |
- anything else that will help with code reviews | |
5. Make a pull request and mark label as ready_for_review |
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
2014-06-16T18:23:15.981170+00:00 heroku[router]: at=info method=GET path="/admin" host=makerlab-akqa.herokuapp.com request_id=dc8fdf7e-670e-4265-abf1-3810ab181bfc fwd="204.90.10.4" dyno=web.1 connect=30ms service=198ms status=200 bytes=2346 | |
2014-06-16T18:23:11.893655+00:00 heroku[router]: at=info method=GET path="/" host=makerlab-akqa.herokuapp.com request_id=880d945d-9ceb-485e-b75e-20e85dd8983f fwd="204.90.10.4" dyno=web.1 connect=1ms service=257ms status=200 bytes=1504 | |
2014-06-16T18:23:17.703857+00:00 heroku[router]: at=info method=GET path="/admin/tool?_pjax=%5Bdata-pjax-container%5D" host=makerlab-akqa.herokuapp.com request_id=60278068-5c84-4970-a981-f0466933f7c9 fwd="204.90.10.4" dyno=web.1 connect=20ms service=138ms status=200 bytes=2598 | |
2014-06-16T18:23:19.542533+00:00 heroku[router]: at=info method=GET path="/admin/tool/new?_pjax=%5Bdata-pjax-container%5D" host=makerlab-akqa.herokuapp.com request_id=aaa06a39-6385-4f14-8a70-c109716ba309 fwd="204.90.10.4" dyno=web.1 connect=2ms service=417ms status=200 |
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
Prefix Verb URI Pattern Controller#Action | |
inventories GET /inventories(.:format) inventories#index | |
POST /inventories(.:format) inventories#create | |
new_inventory GET /inventories/new(.:format) inventories#new | |
edit_inventory GET /inventories/:id/edit(.:format) inventories#edit | |
inventory GET /inventories/:id(.:format) inventories#show | |
PATCH /inventories/:id(.:format) inventories#update | |
PUT /inventories/:id(.:format) inventories#update | |
DELETE /inventories/:id(.:format) inventories#destroy | |
tool_checkouts GET /tools/:tool_id/checkouts(.:format) checkouts#index |
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
<% @checkouts.each do |checkout| %> | |
<tr> | |
<td><%= checkout.email %></td> | |
<td><%= checkout.tool_id %></td> | |
<td><%= link_to 'Return Item', destroy_checkout_path(id),confirm: 'Are you sure?', method: :delete %></td> | |
</tr> | |
<% 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
{ | |
"formatVersion" : 1, | |
"passTypeIdentifier" : "pass.audi.a4.prototype", | |
"serialNumber" : "E5982H-I2", | |
"teamIdentifier" : "ZYFD8JN49N", | |
"webServiceURL" : "https://audiusa.com", | |
"authenticationToken" : "vxwxd7J8AlNNFPS8k0a0FfUFtq0ewzFdc", | |
"barcode" : { | |
"message" : "123456789", | |
"format" : "PKBarcodeFormatPDF417", |
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
var express = require("express"); | |
var app = express(); | |
var port = process.env.PORT || 3700; | |
var io = require('socket.io').listen(app.listen(port)); | |
var Instagram = require('instagram-node-lib'); | |
var http = require('http'); | |
var request = ('request'); | |
var intervalID; | |
/** |
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
var express = require("express"); | |
var app = express(); | |
var port = process.env.PORT || 8080; | |
var io = require('socket.io').listen(app.listen(port)); | |
var Instagram = require('instagram-node-lib'); | |
var http = require('http'); | |
var request = ('request'); | |
var intervalID; | |
/** |
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
got it work sans plug in | |
$.ajax({ | |
type: "GET", | |
dataType: "jsonp", | |
cache: false, | |
url: "https://api.instagram.com/v1/tags/" + 'budlight' + "/media/recent?client_id=" + '41e187d89f4b42b784804e0981f30c11', | |
success: function(response) { | |
var length = response.data != 'undefined' ? response.data.length : 0; | |
var limit = 60 != null && 60 < length ? 60 : length; |
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
GlutenFree.Views.GlutenFreeMeView = Backbone.View.extend({ | |
'events': { | |
'click .nav a': 'preventDefault', | |
'click .button a': 'navigate', | |
'click .email-menu': 'shareMenuEmail' | |
}, | |
'initialize': function() { | |
var view = this; |
NewerOlder