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
var MongoClient = require('mongodb').MongoClient; | |
MongoClient.connect('mongodb://localhost:27017/school', function(err, db) { | |
if(err) throw err; | |
function iterate(list, func) { | |
'use strict'; | |
var i, res; |
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 PostsDAO(db) { | |
"use strict"; | |
if (false === (this instanceof PostsDAO)) { | |
console.log('Warning: PostsDAO constructor called without "new" operator'); | |
return new PostsDAO(db); | |
} | |
var posts = db.collection("posts"); |
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
<reference name="right"> | |
<block type="checkout/cart_sidebar" name="cart_sidebar" template="checkout/cart/sidebar.phtml" before="-"> | |
<action method="addItemRender"><type>simple</type><block>checkout/cart_item_renderer</block><template>checkout/cart/sidebar/default.phtml</template></action> | |
<action method="addItemRender"><type>grouped</type><block>checkout/cart_item_renderer_grouped</block><template>checkout/cart/sidebar/default.phtml</template></action> | |
<action method="addItemRender"><type>configurable</type><block>checkout/cart_item_renderer_configurable</block><template>checkout/cart/sidebar/default.phtml</template></action> | |
<block type="core/text_list" name="cart_sidebar.extra_actions" as="extra_actions" translate="label" module="checkout"> | |
<label>Shopping Cart Sidebar Extra Actions</label> | |
</block> | |
</block> | |
</reference> |
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
App = { | |
color: 'white', | |
updateColor: function(new_color) { | |
this.color = new_color; | |
}, | |
getColor: function(){ | |
console.log(this.color); | |
} | |
}; | |
App.updateColor('orange'); |
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
<block type="page/html" name="root" output="toHtml" template="page/3columns.phtml"> | |
<block type="page/html_head" name="head" as="head"> | |
</block> | |
<block type="page/html_header" name="header" as="header"> | |
// header block children | |
</block> | |
// some blocks |
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
<?xml version="1.0"?> | |
<config> | |
<modules> | |
<Bombardier_TopMenu> | |
<version>0.0.1</version> | |
</Bombardier_TopMenu> | |
</modules> | |
<global> | |
<blocks> | |
<page> |
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($) { | |
/** | |
* Show preloader under element | |
* | |
* @param {string} height of preloader block | |
* @param {string} width of preloader block | |
* @return {void} | |
*/ | |
$.fn.showPreloader = function(width, height) { | |
width = width || '100%'; |
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
masteries: [{ | |
bonus: { | |
dmgFrom: 1 | |
}, | |
image: null, | |
levelMult: 2, | |
name: "Рукопашный бой" | |
}, { | |
bonus: { | |
dmgFrom: 1 |
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
{event: "@message", message: "{"message":{"author":"Sly","message":"asdsd"}}"} before | |
{event: "@message", message: "{"author":"Sly","message":"asdsd"}"} after | |
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
privateMessages: { | |
from: Array[{ | |
author: "Sly" | |
created_at: { | |
date: "2014-05-14 23:15:07" | |
timezone: "Europe/Helsinki" | |
timezone_type: 3 | |
} | |
message: "asdadasdasdad" | |
recipient: "Nagibator2000" |
OlderNewer