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 splitAllWays(result, left, right){ | |
result.push(left.concat(right)); | |
if (right.length > 1){ | |
for(var i = 1; i < right.length; i++){ | |
splitAllWays(result, left.concat(right.substring(0, i)), right.substring(i)); | |
} | |
} | |
return result; | |
}; |
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
{ | |
"-KbvAXsd8EC4Ig12gsRR": { | |
"department": "CMST", | |
"description": "A study of web design, tools, and technology principles. The goal is to plan and produce a professional website. Topics include Internet protocols; usability; accessibility; and social, ethical, and legal issues related to website production. Focus is on Extensible HyperText Markup Language (XHTML) and cascading style sheets (CSS).", | |
"equivalencies": [ | |
{ | |
"department": "CAPP", | |
"number": "385" | |
} | |
], |
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 ExtractTextPlugin = require('extract-text-webpack-plugin'); | |
const CopyWebpackPlugin = require('copy-webpack-plugin'); | |
const BUILD_DIR = 'build' | |
module.exports = { | |
entry: './scripts/webpack_loader.js', | |
output: { | |
path: BUILD_DIR + '/scripts', | |
filename: "bundle.js" |
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'); |
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
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
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
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
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
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); |