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
var homeModule = angular.module('HomeModule', []); | |
homeModule.filter('titleCase', function () { | |
return function (input) { | |
var words = input.split(' '); | |
for (var i = 0; i < words.length; i++) { | |
words[i] = words[i].charAt(0).toUpperCase() + words[i].slice(1); | |
} | |
return words.join(' '); | |
} |
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
mongoimport --db topo --collection mekong_admin_1_lakes --file ne_10m_admin_1_states_provinces_lakes.json |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<script src="http://code.jquery.com/jquery-latest.js"></script> | |
<meta charset=utf-8 /> | |
<title>JS Bin</title> | |
</head> | |
<body> | |
<div class="members-wrapper"></div> | |
<div class="logger"></div> |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta name="description" content="js method chaining" /> | |
<script src="http://code.jquery.com/jquery-latest.js"></script> | |
<meta charset=utf-8 /> | |
<title>JS Bin</title> | |
</head> | |
<body> | |
<div class="members-wrapper"></div> |
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
# set to original | |
npm set registry https://registry.npmjs.org/ | |
# alternatives | |
npm set registry http://ec2-46-137-149-160.eu-west-1.compute.amazonaws.com | |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta name="description" content="CSS3 rotate background image only, not element" /> | |
<meta charset="UTF-8" /> | |
<title>Background Image Transformations</title> | |
<style> | |
body | |
{ | |
font-family: arial, helvetica, freesans, sans-serif; |
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
/*jslint devel: true, node: true, passfail: true, vars: true */ | |
// TODO: check out http://www.jslint.com for more jslint options | |
function itzStrict() { | |
"use strict"; | |
// TODO: write you js code here... |
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
ifconfig | grep -m 1 "inet addr:192.168.1" | cut -c21-31 |
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
exec: { | |
//get IP & Set a local variable | |
get_ip: { | |
command: 'ifconfig | grep -m 1 "inet addr:192.168.1" | cut -c21-31', | |
callback: function (error, stdout, stderr) { | |
if (error !== null) { | |
grunt.log.error('exec error: ' + error); | |
}; | |
globalConfig.myIP = stdout; |
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
{ | |
"source": "source" | |
, "destination": "wwwroot" | |
} |
OlderNewer