Skip to content

Instantly share code, notes, and snippets.

View liorkesos's full-sized avatar
😎
chillin

Lior Kesos liorkesos

😎
chillin
View GitHub Profile
@liorkesos
liorkesos / toggl.js
Last active August 29, 2015 14:15
function not working
/*jslint latedef:false*/
'use strict';
var utils = require('./utils'),
_ = require('lodash'),
config = require('meanio').loadConfig();
exports.clients = function(req,res){
{
"defaults":{
"db": "mongo",
"taskrunner": "grunt",
"preprocessor":"none",
},
"dependencies":{"mean-admin":"latest"}
}
@liorkesos
liorkesos / gist:09a96f77d7ffc23d85cb
Created November 20, 2014 06:51
Web Tutorials to start with
Git - https://try.github.io/levels/1/challenges/1
html/css - http://www.codecademy.com/en/tracks/web
javascript - http://www.codecademy.com/en/tracks/javascript
Angular Intro - https://www.codeschool.com/courses/shaping-up-with-angular-js
Another angular tutorial - https://thinkster.io/angulartutorial/mean-stack-tutorial/
Angular videos - https://egghead.io/
MEAN stack basics - https://thinkster.io/angulartutorial/mean-stack-tutorial
@liorkesos
liorkesos / gist:c2254b7c4a13763863f6
Created November 17, 2014 19:33
cylon analog read
var Cylon = require('cylon');
Cylon.robot({
connection: {
name: 'voodoospark',
adaptor: 'voodoospark',
accessToken: '7934611bc6bf91b50c67a4477d2e90bad4b8f561',
deviceId: '53ff6e066667574847462567',
module: 'cylon-spark'
},
var Cylon = require('cylon');
// Initialize the robot
Cylon.robot({
connection: { name: 'spark',adaptor:'adaptor', accessToken: '3111decfe43f23fc4a45cb51eac70e91c9b509c0', deviceId: '53ff6e066667574847462567', module: 'spark' },
device: { name: 'led', driver: 'led', pin: 'D0' },
work: function(my) {
every((1).second(), function() {
my.led.toggle();
<carousel interval="myInterval">
<slide ng-repeat="site in sites" active="site.active">
<img ng-src="{{site.image}}" style="margin:auto;">
<div class="carousel-caption">
</div>
</img>
<span class="pull-left">
<h4 ng-model=site.name>Slide {{site.name}} by {{site.author}}</h4>
<p>{{site.text}}</p>
</span>
{
"directory": "public/assets/lib"
}
{
"name": "map",
"version": "0.1",
"dependencies": {
"angular-google-maps": "latest"
}
}
{
"name": "map",
"version": "0.0.1",
"description": "Maps lets you integrate directives and callbacks for location based applications",
"author": {
"name": "Lior Kesos"
},
"mean": "0.4.0",
"engines": {
"node": "0.10.x",
@liorkesos
liorkesos / mean-upload
Last active November 17, 2015 08:55
The mean-upload package provides the next directive that lets you upload multiple files to the server
<mean-upload file-dest="'/files/photos/'"
upload-callback="uploadFinished(files)"
upload-file-callback="uploadFileCallback(file)"></mean-upload>
<div data-ng-repeat="img in images">
<img data-ng-src="{{img.src}}" alt="">
</div>