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
// ==UserScript== | |
// @name Feedly Tweaks | |
// @namespace http://your.homepage/ | |
// @version 1.0 | |
// @description tweaks for feedly | |
// @author You | |
// @include /https?:\/\/feedly.com/ | |
// @require https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js | |
// @grant none | |
// ==/UserScript== |
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
package xyz.selfenrichment.robertotomas.popularmovies.lib; | |
// Created by RobertoTomás on 0004, 4, 4, 2016. | |
import android.content.Context; | |
import android.content.res.Configuration; | |
import android.content.res.Resources; | |
import android.util.DisplayMetrics; | |
import android.view.View; | |
import android.view.ViewGroup; | |
import android.widget.ListAdapter; |
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
import java.util.*; | |
import java.lang.*; | |
/** | |
* Created by RobertoTomás on 0027, 27, 4, 2016. | |
*/ | |
public class StringSorter { | |
public static void main(String[] args) { | |
//Arrays.stream(args).sorted(Comparator.naturalOrder()); |
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
require('console'); | |
/** | |
* Created by rober_000 on 5/12/2016. | |
*/ | |
class Factorials{ | |
recursive(n){ | |
if (n === 1) { | |
return 1; | |
} | |
return n * this.recursive(n - 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
Service = (function() { | |
return { | |
body: function(){ | |
var s = {} | |
const controller_wrapper = function (f) { | |
return function () { | |
s = Array.prototype.shift.apply(arguments) | |
let r = f.apply(this, arguments) | |
return { | |
$scope: s, |
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
angular.module('app').service('Res', ['$rootScope', function ($rootScope) { | |
var scope = $rootScope | |
scope._scripts = scope._scripts || [] | |
scope._styles = scope._styles || [] | |
scope._rawScripts = scope._rawScripts || [] | |
scope._rawStyles = scope._rawStyles || [] | |
return { | |
style: function (inp) { | |
var hrefs = [] |
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
angular.module('app').service('ViaCEPService', ['$rootScope', | |
function($rootScope) { | |
const __validation_CEP = function (bool, form, dados) { | |
if(bool){ | |
$(form + ' input[name=rua]').val(dados.logradouro) | |
$(form + ' input[name=bairro]').val(dados.bairro) | |
$(form + ' input[name=cidade]').val(dados.localidade) | |
$(form + ' input[name=estado]').val(dados.uf) | |
$(form + ' input[name=pais]').val('Brasil') |
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 gulp = require('gulp'); | |
var plumber = require('gulp-plumber'); | |
var rename = require('gulp-rename'); | |
var autoPrefixer = require('gulp-autoprefixer'); | |
//if node version is lower than v.0.1.2 | |
//require('es6-promise').polyfill(); | |
var cssComb = require('gulp-csscomb'); | |
var cmq = require('gulp-merge-media-queries'); | |
var cleanCss = require('gulp-clean-css'); | |
var browserify = require('gulp-browserify'); |
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
let languages = (navigator.languages === undefined)? | |
[ (navigator.language || navigator.userLanguage).substr(0, 2) ] : | |
$.unique(navigator.languages.map(f=> f.substr(0,2))) |
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
const gulp = require('gulp') | |
const plumber = require('gulp-plumber') | |
const rename = require('gulp-rename') | |
const autoprefixer = require('gulp-autoprefixer') | |
const babel = require('gulp-babel') | |
const concat = require('gulp-concat') | |
const sass = require('gulp-sass') | |
const browserSync = require('browser-sync') | |
const clean = require('gulp-clean') | |
const sourcemaps = require('gulp-sourcemaps'); |