Skip to content

Instantly share code, notes, and snippets.

View sirgalleto's full-sized avatar
💛
JavaScript de libre pastoreo

Sebastián Osorio sirgalleto

💛
JavaScript de libre pastoreo
View GitHub Profile
@sirgalleto
sirgalleto / push.js
Created June 17, 2016 05:18
Send push not with onesignal
'use strict';
var rp = require('request-promise');
module.exports = function(data, userId){
return rp({
method: 'POST',
uri: 'https://onesignal.com/api/v1/notifications',
headers: {
'Content-Type': 'application/json',
@sirgalleto
sirgalleto / document.html
Last active May 31, 2016 17:47
document.js
<template bindable="open">
<div if.bind="open" class="cd-document">
<button class="mdl-button mdl-js-button mdl-button--icon cd-document__close" click.trigger="close()">
<i class="material-icons">close</i>
</button>
<div class="cd-document__title">
<div class="cd-document__title__image">
<i class="material-icons">image</i>
image
</div>
@sirgalleto
sirgalleto / 0_reuse_code.js
Created January 25, 2016 16:53
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@sirgalleto
sirgalleto / gulp.js
Created October 20, 2015 16:29
Gulpfile for angular based aplication
var gulp = require('gulp-help')(require('gulp'))
, browserSync = require('browser-sync')
, jshint = require('gulp-jshint')
, inject = require('gulp-inject')
, wiredep = require('wiredep').stream
, templateCache = require('gulp-angular-templatecache')
, gulpif = require('gulp-if')
, minifyCss = require('gulp-minify-css')
, useref = require('gulp-useref')
, uglify = require('gulp-uglify')
@sirgalleto
sirgalleto / gist:0b01d540b6ea4249e954
Created July 7, 2015 19:40
Filter base url + static
(function(){
angular
.module('evaluon')
.value('imgUrlBase', 'http://186.154.240.187:1045')
.filter('image', image);
function image(imgUrlBase) {
return function(img){
return '{0}/{1}'.format(imgUrlBase, img);
(function(){
'use strict';
angular
.module('module')
.directive('soComents', soComents);
function soComents(){
return{
@sirgalleto
sirgalleto / gist:1733333e804875973b8b
Last active August 29, 2015 14:18
soComents.html
<div class="div_historial">
<div ng-repeat="coment in coments">
<!-- StaffOf -->
<div class="retroalimentacion" ng-if="!coment.ifStaff">
<div class="avatar_staff"></div>
<div class="retro_cliente">
<p class="user_">{{ coment.message }}</p>
</div>
</div>
<!-- Ciente -->