[ Launch: schanges ] 7223700 by kevinwestern
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
#example { | |
width: 75px; | |
height: 75px; | |
background-color: black; | |
-moz-transition: all 2s ease-in-out 0.5s; | |
-o-transition: all 2s ease-in-out 0.5s; | |
-webkit-transition: all 2s ease-in-out 0.5s; | |
transition: all 2s ease-in-out 0.5s | |
} |
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
/** NavController */ | |
'use strict'; | |
testnavApp.controller('NavController', function($scope, $location) { | |
$scope.isActiveTab = function(tab) { | |
return $location.path().indexOf(tab) !== -1; | |
}; | |
}); | |
/** html **/ |
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 http = require('restler'), | |
jsdom = require('jsdom'); | |
function getPrice(html) { | |
var start = html.search(/\$\d+/); | |
if (start === -1) { | |
return -1; | |
} | |
return +html.substring(start + 1, html.substring(start + 1).search(/\D+/) + 1); | |
}; |
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
$scope.playTrack = function(track) { | |
SC.oEmbed(track.permalink_url, { auto_play: true }, function(oEmbed) { | |
$scope.$apply(function() { | |
$scope.embeded = oEmbed; | |
}); | |
}); | |
}; | |
$scope.$watch($scope.embeded, function(){ console.log('omg'); }); |
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 app = angular.module('apm', ['apm.controller']); | |
app.config(['$routeProvider', function($routeProvider) { | |
alert('test'); | |
$routeProvider.when('/', { | |
controller: 'HomeCtrl', | |
template: '/static/templates/home.ng' | |
}).otherwise({redirectTo: '/'}); | |
}]); |
[ Launch: Tributary inlet ] 7251821 by kevinwestern
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
function thisIsOk() { | |
var name = getName(); | |
var age = getAge(); | |
if (age < 21) { | |
console.log("You're too young!"); | |
} else { | |
console.log("Come on in!"); | |
} | |
} |
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
// Code goes here | |
var myApp = angular.module('myApp', ['ngResource']); | |
myApp.factory('indexedDB', ['$window', '$q', function($window, $q) { | |
var version = 2; | |
var indexedDB = $window.indexedDB; | |
var request = indexedDB.open('myapp', version); | |
var db = null; | |
var defer = $q.defer(); |
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
// Calculator.java | |
public class Calculator { | |
public Calculator() { | |
} | |
public int add(int num1, int num2) { | |
return num1 + num2; | |
} | |
} |