Messing around with loading ideas using just CSS3 animations.
Forked from Kyle Brumm's Pen Wavy Loading Animations.
A Pen by Captain Anonymous on CodePen.
@app.directive 'ngUseDefault', -> | |
restrict: 'A' | |
controller: ['$scope', '$element', '$attrs', '$parse', ($scope, $element, $attrs, $parse) -> | |
initialValue = $element.val() | |
getter = $parse($attrs.ngModel) | |
setter = getter.assign | |
setter($scope, initialValue) | |
] |
#!/usr/bin/env ruby | |
require 'pivotal-tracker' | |
TRACKER_TOKEN = ENV.fetch("TRACKER_TOKEN") | |
TRACKER_PROJECT_ID = ENV.fetch("TRACKER_PROJECT_ID") | |
PivotalTracker::Client.token = TRACKER_TOKEN | |
PivotalTracker::Client.use_ssl = true | |
project = PivotalTracker::Project.find(TRACKER_PROJECT_ID) |
require 'yaml' | |
def insert_comments(file) | |
result = "" | |
i = 0 | |
file.each_line do |line| | |
leading_indentation = line[/^\s*/] | |
comment_split = line.split("#").reverse | |
if comment_split.length == 2 | |
result += "\n#{leading_indentation}__comment_#{i}: " |
module BehaviorDSL | |
def behavior(name, &block) | |
metadata[:description_args].push(name) | |
refresh_description | |
yield | |
metadata[:description_args].pop | |
refresh_description | |
end | |
private |
Messing around with loading ideas using just CSS3 animations.
Forked from Kyle Brumm's Pen Wavy Loading Animations.
A Pen by Captain Anonymous on CodePen.
// src/views/Advert.js | |
import __fetch from "isomorphic-fetch"; | |
import React from "react"; | |
import Transmit from "react-transmit"; | |
import AdvertStore from "stores/AdvertStore"; | |
import _ from "utils/Utils"; | |
class Advert extends React.Component { | |
render () { | |
return ( |
import {getTypes} from '@risingstack/graffiti-mongoose'; | |
import Models, { User } from '../mongoose'; | |
import Subdocuments from './subdocuments'; | |
let types = getTypes(Models) | |
let UserType = types.User; | |
// FIXME: Hack subdocument for now | |
Object.assign(UserType._typeConfig.fields, { | |
bestFriend: Subdocuments.singular(User, UserType), |
# Copyright 2008 Google Inc. | |
# | |
# Licensed under the Apache License, Version 2.0 (the "License"); | |
# you may not use this file except in compliance with the License. | |
# You may obtain a copy of the License at | |
# | |
# http://www.apache.org/licenses/LICENSE-2.0 | |
# | |
# Unless required by applicable law or agreed to in writing, software | |
# distributed under the License is distributed on an "AS IS" BASIS, |
#!/bin/bash | |
npm install react-native | |
echo "." |