This file contains 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
angular.module('JCP').factory 'Product', ($resource, Config) -> | |
$resource "#{ Config.BASE_API_URL }/products/:id", {}, | |
getAvailability: | |
method: 'GET' | |
url: "#{ Config.BASE_API_URL }/products/:id/availability" | |
isArray: true |
This file contains 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
{ | |
"0": -0.2168882191181183, | |
"1": -0.18157310783863068, | |
"2": -0.10816243290901184, | |
"3": -0.044059522449970245, | |
"4": -0.04719730466604233, | |
"5": -0.12277217954397202, | |
"6": -0.20372386276721954, | |
"7": -0.20472729206085205, | |
"8": -0.10176539421081543, |
This file contains 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
/********************************************************************/ | |
/* Imports */ | |
/********************************************************************/ | |
var Gulp = require('gulp'); | |
var Concat = require('gulp-concat'); | |
var Uglify = require('gulp-uglify'); | |
/********************************************************************/ |
This file contains 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
angular.module 'angular-custom-select-examples', ['angular-custom-select'] | |
.controller 'ExamplesController', ($scope) -> | |
$scope.selectedValues = {} | |
$scope.strings = ['Option A', 'Option B', 'Option C', 'Option D', 'Option E'] |
This file contains 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
angular.module 'angular-custom-select-examples', ['angular-custom-select'] | |
.controller 'ExamplesController', ($scope) -> | |
$scope.selectedValues = {} | |
$scope.objects = [ | |
{ name: 'Option A' } | |
, { name: 'Option B' } | |
, { name: 'Option C' } | |
, { name: 'Option D (disabled)', disabled: true } |
This file contains 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
# To run the script: | |
# 1. Download caesar_cipher.rb | |
# 2. Download dictionary.json to the same directory (https://gist.githubusercontent.com/nickcherryjiggz/a615b4a39abedb84c50f/raw/3a8cec1c61cc6431bb84bdca19cab5ffb758ab8e/dictionary.json) | |
# 3. Open your terminal | |
# 4. Navigate to the directory where caesar_cipher.rb and dictionary.json live | |
# 5. Run the following command: ruby caesar_cipher.rb | |
require 'json' # We'll need this to parse the dictionary. | |
require 'open-uri' # We'll need this to fetch the dictionary from Github, if it's not available locally. |
This file has been truncated, but you can view the full file.
This file contains 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
[ | |
"bawk", | |
"bagawk", | |
"a", | |
"aa", | |
"aah", | |
"aahed", | |
"aahing", | |
"aahs", | |
"aal", |
This file contains 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
require 'benchmark' | |
iterations = 1_000_000 | |
def rename(source, dest) | |
{ source: source, dest: dest } | |
end | |
Benchmark.bm do |bm| |
This file contains 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
@mixin fade-in-out($duration: 0.6s, $ease: ease-out, $delay: 0s) { | |
opacity: 0; | |
transition: visibility 0s $ease ($duration + $delay), opacity $duration $ease $delay; | |
visibility: hidden; | |
&.visible { | |
opacity: 1; | |
transition-delay: 0s; | |
visibility: visible; | |
} | |
} |
This file contains 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
$ colorguard --file application.css | |
Collision: #f7931d, #f89406 | |
- #f7931d (#f7931d) [line: 148:14, 153:9] is too close (1.5127833911624) to #f89406 (#f89406) [line: 6015:76, 6016:58, 6017:48] | |
Collision: #00b4a4, #00b2a3 | |
- #00b4a4 (#00b4a4) [line: 198:14, 203:9, 6620:14, 7055:12, 7058:14] is too close (0.6324791268300444) to #00b2a3 (#00b2a3) [line: 4804:20, 4812:20, 7191:20] | |
Collision: #00b4a4, #00b5a5 | |
- #00b4a4 (#00b4a4) [line: 198:14, 203:9, 6620:14, 7055:12, 7058:14] is too close (0.28205982868491664) to rgba(0, 181, 165, 0.8) (#00b5a5) [line: 7070:14] |
OlderNewer