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
'use strict'; | |
var gulp = require('gulp'), | |
$ = require('gulp-load-plugins')(); | |
$.fs = require('fs'); | |
$.sync = require('browser-sync'); | |
$.run = require('run-sequence'); | |
$.del = require('del'); | |
$.merge = require('merge-stream'); |
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 lastPos = 0; | |
var scrolling = $('#scrolling-item'); | |
scrolling.on('scroll', function () { | |
var height = scrolling.height(); | |
var scrollHeight = scrolling[0].scrollHeight; | |
var scrollTop = scrolling.scrollTop()+1; | |
if (lastPos < scrollTop) { | |
if (scrollTop >= scrollHeight - height) { | |
console.log('Loading..'); | |
} |
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
/** | |
* AuthController | |
* | |
* @description :: Server-side logic for managing auths | |
* @help :: See http://links.sailsjs.org/docs/controllers | |
*/ | |
module.exports = { | |
index: function (req, res) { | |
var email = req.param('email'); |
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
/* CallApply.js | |
* How to use .call() and .apply() | |
* Author : Sabbir Ahmed | |
* Mail : <mail[at]thesabbir.com> | |
* Date : 6-May-2015 | |
*/ | |
// Lets create a User Object | |
var User = function(name, age){ |
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
/** | |
* Created by sabbir on 5/7/15. | |
* Config for Elaach server | |
*/ | |
var base = 'http://elaach.com'; | |
var baseMovie = base + '/index.php/movie'; | |
module.exports.config = { | |
base : base, |
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
language: android | |
android: | |
components: | |
- build-tools-22.0.1 # Specify your build tools verison | |
- android-22 # Android Platform Target | |
env: # Envirement Variables | |
global: | |
before_install: | |
# Commands to excecute before install | |
- echo "Before install stage" |
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
{ | |
"private": true, | |
"engines": { | |
"node": ">=0.10.0" | |
}, | |
"scripts" : { | |
"test" : "./.bin/gulp test", | |
"build" : "./.bin/cordova build android", | |
"postinstall": "./.bin/bower install && ./.bin/cordova prepare" | |
}, |
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
<%# | |
LuCI - Lua Configuration Interface | |
Copyright 2008 Steven Barth <[email protected]> | |
Copyright 2008-2011 Jo-Philipp Wich <[email protected]> | |
Licensed under the Apache License, Version 2.0 (the "License"); | |
you may not use this file except in compliance with the License. | |
You may obtain a copy of the License at | |
http://www.apache.org/licenses/LICENSE-2.0 |
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
{ | |
"vars": { | |
"@gray-base": "#000", | |
"@gray-darker": "lighten(@gray-base, 13.5%)", | |
"@gray-dark": "lighten(@gray-base, 20%)", | |
"@gray": "lighten(@gray-base, 33.5%)", | |
"@gray-light": "lighten(@gray-base, 46.7%)", | |
"@gray-lighter": "lighten(@gray-base, 93.5%)", | |
"@brand-primary": "darken(#428bca, 6.5%)", | |
"@brand-success": "#5cb85c", |
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
/* | |
* Author: http://stuffandnonsense.co.uk/blog/about/hardboiled_css3_media_queries/ | |
*/ | |
/* Smartphones (portrait and landscape) ----------- */ | |
@media only screen | |
and (min-device-width : 320px) | |
and (max-device-width : 480px) { | |
/* Styles */ | |
} |