Skip to content

Instantly share code, notes, and snippets.

View blackxored's full-sized avatar
🏠
Working from home

Adrian Perez blackxored

🏠
Working from home
View GitHub Profile
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'
jQuery.get('/people.json', function(people) {
people.forEach(function(person) {
$('<li>' + person.name + '</li>').appendTo('ul')
})
});
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] ||= {}
@blackxored
blackxored / designer.html
Last active August 29, 2015 14:02
designer
<link rel="import" href="../components/polymer/polymer.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;
width: 100%;
height: 100%;
{
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"
<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
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');
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
}
'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;
$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);