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
Plugin 'gmarik/vundle.vim' | |
Plugin 'vim-scripts/AnsiEsc.vim.git' | |
Plugin 'vim-scripts/AutoTag.git' | |
Plugin 'vim-scripts/IndexedSearch.git' | |
Plugin 'chrisbra/NrrwRgn.git' | |
Plugin 'skwp/YankRing.vim.git' | |
Plugin 'rking/ag.vim.git' | |
Plugin 'vim-scripts/argtextobj.vim.git' | |
Plugin 'vim-scripts/camelcasemotion.git' | |
Plugin 'briandoll/change-inside-surroundings.vim.git' |
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
jQuery.get('/people.json', function(people) { | |
people.forEach(function(person) { | |
$('<li>' + person.name + '</li>').appendTo('ul') | |
}) | |
}); |
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
module PunditExtensions | |
def authorize(record, query=nil, account_or_job=nil) | |
preload_permissions(record) | |
deal_with_account_or_job(record, account_or_job) if account_or_job | |
super | |
end | |
def preload_permissions(record) | |
@preloaded ||= {} | |
@preloaded[:permissions] ||= {} |
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 rel="import" href="../components/polymer/polymer.html"> | |
<polymer-element name="my-element"> | |
<template> | |
<style> | |
:host { | |
position: absolute; | |
width: 100%; | |
height: 100%; |
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
{ | |
collection: { | |
version: "1.0", | |
href: "/tasks" | |
items: [ { | |
href: "/tasks/1", | |
data: [{ | |
name: "name", value: "My first task", prompt: "Name" | |
name: "description", value: "My first task description", prompt: "Description" | |
name: "author", value: "Adrian Perez", prompt: "Author" |
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
<fieldset> | |
<h5 class="form__title">Avatar</h5> | |
<div class="form__container"> | |
<div class="grid grid--widest grid--middle flush--bottom"> | |
<div class="grid__item one-half"> | |
<ul class="form__list form__list--inline"> | |
<li> | |
<div class="form__list__content"> | |
<span class="avatar form__avatar"> | |
<img |
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
angular.module('Skindler') | |
.constant('BASE_URI', 'http://api.skindler.com') | |
.constant('API_VERSION', 'v1') | |
.constant('SOCKET_URI', 'http://staging.skindler.com:5000/socket') | |
.constant('STRIPE_APP_ID', 'ca_3RMwylaNGHWz10cpc6mf5lcliOAYurc3') | |
.constant('FILE_URI_PREFIX', 'http://staging.skindler.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
Bugsnag.before_notify_callbacks << ->(notif) { | |
if current_user | |
notif.add_tab(:user, { | |
id: current_user.id, | |
username: current_user.username, | |
ip: notif.user_id | |
}) | |
end | |
} |
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
'use strict'; | |
angular.module("elven") | |
.factory("persistence", function($q) { | |
var geoRef = new Firebase('https://elvenapp.firebaseio.com/geo'), | |
ref = new geoFire(geoRef); | |
return { | |
store: function(id, coords, user) { | |
var defered = $q.defer(); | |
this.location = coords; |
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
$interval(function() { | |
if ($scope.markers[1].lat - $scope.markers[3].lat < 0.00100) { | |
$scope.markers[3].lat -= 0.00100; | |
} | |
if ($scope.markers[3].lng - $scope.markers[1].lng < 0.00050) { | |
$scope.markers[3].lng += 0.00050; | |
} | |
}, 200); |