<Additional information about your API call. Try to use verbs that match both request type (fetching vs modifying) and plurality (one vs multiple).>
-
URL
<The URL Structure (path only, no root url)>
-
Method:
[core] | |
editor = vi | |
[alias] | |
co = checkout | |
ci = commit | |
st = status | |
br = branch | |
hist = log --pretty=format:\"%C(yellow)%h%Creset %ad | %Cgreen%s%Creset%d %Cred[%cn - %ce]%Creset\" --graph --date=iso --decorate | |
history = log --pretty=format:\"%C(yellow)%h%Creset %ad | %Cgreen%s%Creset%d %Cred[%cn - %ce]%Creset\" --graph --date=iso --decorate | |
type = cat-file -t |
#---------------------------------------------------------------------------- | |
# Ignore these files when commiting to a git repository. | |
# | |
# See http://help.github.com/ignore-files/ for more about ignoring files. | |
# | |
# The original version of this file is found here: | |
# https://github.com/RailsApps/rails-composer/blob/master/files/gitignore.txt | |
# | |
# Corrections? Improvements? Create a GitHub issue: | |
# http://github.com/RailsApps/rails-composer/issues |
// In app.js or main.js or whatever: | |
// var myApp = angular.module('askchisne', ['ngSanitize', 'ngAnimate', 'ui.bootstrap', 'ui.bootstrap.tpls']); | |
// This filter makes the assumption that the input will be in decimal form (i.e. 17% is 0.17). | |
myApp.filter('percentage', ['$filter', function ($filter) { | |
return function (input, decimals) { | |
return $filter('number')(input * 100, decimals) + '%'; | |
}; | |
}]); |
angular.module('myApp') | |
.controller('SampleCtrl', ['$scope', 'sampleService', function($scope, sampleService) { | |
$scope.loaded = true; | |
$scope.loadedContent = null; | |
$scope.sampleAction = function() { // Sample Action that will call the API server | |
$scope.loaded = false; | |
$scope.loadedContent = sampleService.get({}, function(data) { | |
$scope.loaded = true; | |
}, function(err) { |
#Deploy and rollback on Heroku in staging and production | |
task :deploy_staging => ['deploy:set_staging_app', 'deploy:push', 'deploy:restart', 'deploy:tag'] | |
task :deploy_production => ['deploy:set_production_app', 'deploy:push', 'deploy:restart', 'deploy:tag'] | |
namespace :deploy do | |
PRODUCTION_APP = 'YOUR_PRODUCTION_APP_NAME_ON_HEROKU' | |
STAGING_APP = 'YOUR_STAGING_APP_NAME_ON_HEROKU' | |
task :staging_migrations => [:set_staging_app, :push, :off, :migrate, :restart, :on, :tag] | |
task :staging_rollback => [:set_staging_app, :off, :push_previous, :restart, :on] |
<? | |
///////////////////// | |
// slack2html | |
// by @levelsio | |
///////////////////// | |
// | |
///////////////////// | |
// WHAT DOES THIS DO? | |
///////////////////// | |
// |
# ... | |
gem 'carrierwave' | |
gem 'fog', '~> 1.0.0' # Need to specify version, as carrierwave references older (0.9.0) which doesn't allow configuration of Rackspace UK Auth URL |
# | |
# Copyright 2012 Mortar Data 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 |
$('video source').each(function(num,val){ | |
$(this).attr('src', 'newSourceValue') | |
}); |