This gist shows how to create a GIF screencast using only free OS X tools: QuickTime, ffmpeg, and gifsicle.
To capture the video (filesize: 19MB), using the free "QuickTime Player" application:
| 'use strict' | |
| class WebService | |
| constructor: (@$http) -> | |
| login: (user) -> | |
| @$http.post("http://localhost:3000/login", user) | |
| getData: () -> |
| auth = | |
| name: "auth" | |
| url: "/auth" | |
| abstract: true | |
| # this isn't using the templateCache | |
| # templateUrl: "views/auth_layout.html" | |
| templateProvider: ($templateCache,$log) => | |
| $templateCache.get('views/auth.layout.html') |
| createRoute = (name,controller) -> | |
| template = "views/#{name}" | |
| controller = controller or "#{name.charAt(0).toUpperCase()}Ctrl" | |
| route = | |
| name: name | |
| url: "/#{name}" | |
| views: | |
| content: | |
| templateUrl: template | |
| controller: controller |
| Restangular.all('devices').post(device_to_activate).then(function(response) { | |
| $log.info("Device activated", response); | |
| alert("Error " + response.status + ", " + response.data); | |
| }, function(response) { | |
| alert("Error " + response.status + ", " + response.data.message); | |
| }); |
| $scope.$on "$viewContentLoaded", -> | |
| console.log "View Content Loaded" |
| angular.module('SkylineApp').run(function($rootScope) { | |
| return $rootScope.$on("$stateChangeStart", function(evt, toState, toParams, fromState, fromParams) { | |
| return console.log("Transitioning from: " + fromState.name + " to: " + toState.name); | |
| }); | |
| }); |
| rails g model Asset source type attachable:belongs_to{polymorphic} |
| def symbolize_keys(hash) | |
| hash.inject({}){|new_hash, key_value| | |
| key, value = key_value | |
| value = symbolize_keys(value) if value.is_a?(Hash) | |
| new_hash[key.to_sym] = value | |
| new_hash | |
| } | |
| end |
| FB.login(function(response) { | |
| if (response.authResponse) { | |
| var access_token = FB.getAuthResponse()['accessToken']; | |
| FB.api("/me", {fields: "id,name,picture.type(large)"}, function(response) { | |
| console.log(response.id, response.name, response.picture); | |
| }); | |
| } | |
| }, { | |
| scope: 'publish_stream,email' | |
| }); |