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(){ | |
| var mongoose = require('mongoose') | |
| , _ = require("underscore") | |
| , twitter = require('ntwitter') | |
| , User = require('./model')(mongoose).user | |
| , Action = require('./model')(mongoose).action; | |
| mongoose.connect('mongodb://mongohq.com:10001/scocialcrawler'); | |
| var twit = new twitter({ |
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 Depedencies | |
| */ | |
| var path = require('path'); | |
| /** | |
| * Export | |
| */ | |
| exports = module.exports = Blanket; | |
| /** |
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($) { | |
| "use strict"; // jshint ;_; | |
| var customEl = '[data-toggle="sc-toggle"]' | |
| , Toggle = function(el) { | |
| var $el = $(element).on('click.customevent.data-api', this.toggle) | |
| $('html').on('click.customevent.data-api', function() { | |
| $el.parent().removeClass('open') | |
| }) |
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
| define([ | |
| "app" | |
| // Modules | |
| // Plugins | |
| ], | |
| /* | |
| Questions ? | |
| - Do we need to add the div#flash in the page or do we add it if is not present on the first notification? (like lazy initialization) | |
| - Do we allowed our user to close the error message ? Some UX rules say that you cannot close an error or a warning, but you can close information, |
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 add = function(a, b, c) { | |
| return a + b + c; | |
| }; | |
| Function.prototype.method = function(name, func) { | |
| this.prototype[name] = func; | |
| return this; | |
| }; | |
| Function.method('curry', function() { | |
| //keep the value of curry inside a closure |
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
| [AttributeUsage(AttributeTargets.Property)] | |
| public sealed class NotMappingAttribute : Attribute | |
| { | |
| public bool Value { get; private set; } | |
| public NotMappingAttribute() | |
| { | |
| Value = 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
| public class Repository<T> : IRepository<T> where T : class, IEntity | |
| { | |
| private readonly ISession _session; | |
| private readonly IDalValidator<T> _dalValidator; | |
| public Repository(ISession session, IDalValidator<T> dalValidator) | |
| { | |
| _session = session; | |
| _dalValidator = dalValidator; | |
| } |
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 Date.js | |
| if (!Utilities) var Utilities = {}; | |
| $.extend(Utilities, | |
| { | |
| Birthdate : function(lg) { | |
| var Month = { | |
| en : ["January","February","March","April","May","June","July","August","September","October","November","December"], | |
| fr : ["janvier","février","mars","avril","mai","juin","juillet","août","septembre","octobre","novembre","décembre"] | |
| } |
NewerOlder