Skip to content

Instantly share code, notes, and snippets.

View ianscrivener's full-sized avatar

Ian Scrivener ianscrivener

View GitHub Profile
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(' ');
}
mongoimport --db topo --collection mekong_admin_1_lakes --file ne_10m_admin_1_states_provinces_lakes.json
<!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>
<!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>
# 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
<!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;
/*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...
ifconfig | grep -m 1 "inet addr:192.168.1" | cut -c21-31
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;
{
"source": "source"
, "destination": "wwwroot"
}