Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
{ | |
"data": | |
[ | |
{ | |
"name": "Cámara de Diputados - H. Congreso de la Unión", | |
"profile_url": "https://facebook.com/213693228664478", | |
"profile_img": "http://graph.facebook.com/213693228664478/picture?type=large", | |
"last_update": "2014-03-28 16:06:29", | |
"comment_count": 64 | |
}, |
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
Show hidden characters
{ | |
"strict": true, | |
"undef": true, | |
"unused": true, | |
"node": true, | |
"globals": { | |
"describe": true, | |
"it": true, | |
"beforeEach": true, | |
"afterEach": true |
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
[ | |
{ | |
"avatar": "http://pbs.twimg.com/profile_images/423542935368380416/ryEG2fNO.jpeg", | |
"name": "Katy Perry", | |
"uname": "@katyperry", | |
"followers": "51904740", | |
"following": "134", | |
"tweets": "5456" | |
}, | |
{ |
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
/////////////////////////////////////////////////////////////////////////////// | |
// Shema // | |
/////////////////////////////////////////////////////////////////////////////// | |
var Logs = new Schema({ | |
ip: { type: String, required: true, trim: true }, | |
query: {type: Object}, | |
requestHeaders: {type: Object}, | |
requestBody: {type: Object}, | |
responseHeaders: {type: Object}, | |
responseBody: {type: Object}, |
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
// derived from http://en.wikipedia.org/wiki/Algorithms_for_calculating_variance#Parallel_algorithm | |
function map() { | |
emit(1, // Or put a GROUP BY key here | |
{sum: this.value, // the field you want stats for | |
min: this.value, | |
max: this.value, | |
count:1, | |
diff: 0, // M2,n: sum((val-mean)^2) | |
}); |
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
<div class="container" style="height: 116px; line-height: 116px;"> | |
<strong class="logo"><a href="http://www.linkedmediagroup.com/"><img src="http://www.linkedmediagroup.com/wp-content/uploads/2013/04/space-rocket5b1.png" alt="Linked Media Group" scale="0"></a></strong><div class="main_menu" data-selectname="Select a page"><div class="menu-main-menu-container"><ul id="menu-main-menu" class="menu" style="display: none;"><li id="menu-item-6342" class="menu-item menu-item-type-post_type menu-item-object-page"><a href="http://www.linkedmediagroup.com/" style="height: 116px; line-height: 116px;"><span class="avia-bullet"></span>Home<span class="avia-menu-fx"><span class="avia-arrow-wrap"><span class="avia-arrow"></span></span></span></a></li> | |
<li id="menu-item-6343" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-mega-parent "><a href="http://www.linkedmediagroup.com/about-us/" style="height: 116px; line-height: 116px;"><span class="avia-bullet"></span>About Us<span class="avia-m |
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
"my product name".replace(/\s+/g,'-').toLowerCase().replace(/-(.)/g, function(match, group1) { | |
return group1.toUpperCase(); | |
}); | |
// ---> myProductName |
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 lang="en" ng-app="myApp"> | |
<head> | |
<meta charset="UTF-8"></meta> | |
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script> | |
<script src="http://s.codepen.io/assets/libs/prefixfree.min.js"></script> | |
<script src="//cdn.jsdelivr.net/less/1.7.0/less.min.js"></script> | |
<style> | |
@import url('//weloveiconfonts.com/api/?family=entypo'); | |
@import url('//netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.min.css'); |
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
!!!!! controller vs controllerAs http://toddmotto.com/digging-into-angulars-controller-as-syntax/ !!!! | |
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>AngularJS 101</title> | |
<link rel="stylesheet" href="css/main.css"> | |
<link rel="stylesheet" href="css/prism.css"> | |
<link rel="stylesheet" href="css/custom.css"> | |
</head> | |
<body> |