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
| $(window).load(function(){ | |
| if (!Modernizr.input.placeholder){ | |
| $('input').supportPlaceHolder(); | |
| } | |
| if (!Modernizr.textarea.placeholder){ | |
| $('textarea').supportPlaceHolder(); | |
| } | |
| }); |
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
| alias glg='git log --graph --pretty=format:"%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr by %an)%Creset" --abbrev-commit --date=relative' |
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
| <!DOCTYPE doctype 5> | |
| <html> | |
| <head> | |
| <meta charset="utf-8"/> | |
| <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"/> | |
| <title></title> | |
| <meta name="description" content=""/> | |
| <meta name="viewport" content="width=device-width,initial-scale=1"/> | |
| <script data-main="js/test" src="/js/libs/require-2.1.4.js"></script> | |
| </head> |
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
| //Wait for relevant code bits to load before starting any tests | |
| define(['core.js'], function( core ) { | |
| module("Core Tests"); | |
| test("Test core methods", function(){ | |
| expect(2); | |
| equals( 1, 1, "A trivial test"); | |
| ok( true, "Another trivial test"); | |
| }); |
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
| module.exports = function(grunt) { | |
| // Project configuration. | |
| grunt.initConfig({ | |
| pkg: grunt.file.readJSON('package.json'), | |
| browserify: { | |
| pages: { | |
| files: [ | |
| { | |
| expand: true, | |
| cwd: 'javascript/src/pages/', |
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
| # Add this to your Compass config.rb to perform a Grunt-specific task after Compass | |
| # compiles your Sass. | |
| # see if a shell command exists | |
| def which(cmd) | |
| exts = ENV['PATHEXT'] ? ENV['PATHEXT'].split(';') : [''] | |
| ENV['PATH'].split(File::PATH_SEPARATOR).each do |path| | |
| exts.each { |ext| | |
| exe = File.join(path, "#{cmd}#{ext}") | |
| return exe if File.executable? exe |
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
| { | |
| message: "action:timeout", | |
| action_id: "4dafb356-461b-48d5-bd19-49533cb504cc91" | |
| } |
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
| // Connection Map | |
| // https://github.com/Ubiquiti-UI/aircontrol/blob/master/src/scripts/services/models/Topology.js#L188 | |
| { | |
| "0974b31a06cb437d93387a3098e8303a": ["bedb1e010b0649ecb9312165ab8dd844", "f9971446bb464b8f9cc47208993c208b", "cpe_0974b31a06cb437d93387a3098e8303a"], | |
| "bedb1e010b0649ecb9312165ab8dd844": ["0974b31a06cb437d93387a3098e8303a", "12130bf43d3d49fbae37b6062c4b08b9", "4f56e442425547ebbe69d200abddaf01", "5226c3d7fff34157819a4486991bd2ab", "96a51d559dd542e18739b2b9910d5a1d", "acd9e4d8a464406895e2a7a34808ddd9", "b2bd748e2c214b8e9f2d034684940641", "ef5154fe27734fc4a2395cad38f16fd4", "f9971446bb464b8f9cc47208993c208b"], | |
| "f9971446bb464b8f9cc47208993c208b": ["0974b31a06cb437d93387a3098e8303a", "bedb1e010b0649ecb9312165ab8dd844"], | |
| "12130bf43d3d49fbae37b6062c4b08b9": ["4f56e442425547ebbe69d200abddaf01", "bedb1e010b0649ecb9312165ab8dd844", "cpe_12130bf43d3d49fbae37b6062c4b08b9"], | |
| "4f56e442425547ebbe69d200abddaf01": ["12130bf43d3d49fbae37b6062c4b08b9", "bedb1e010b0649ecb9312165ab8dd844"], |
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
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <script src="http://d3js.org/d3.v3.min.js" charset="utf-8"></script> | |
| <script src="http://code.jquery.com/jquery-1.11.1.js"></script> | |
| <style> | |
| svg { | |
| width: 500px; | |
| height: 500px; | |
| } |
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 checkSlugAvailability(slug) { | |
| if (slug) { | |
| $scope.$apply(function() { | |
| $q.when((new ProfileSlugModel({ | |
| id: slug | |
| })).exists(), function(result) { | |
| if (result) { | |
| isSlugAvailable = false; | |
| } else { | |
| isSlugAvailable = true; |
OlderNewer