#Studies on new trends for Frontend
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
| // change .flac for the extension | |
| // for crossdomain | |
| copy(Array.prototype.slice.call(document.body.querySelectorAll("a[href$='.flac']")).map(link => link.getAttribute('href')).join("\n")) | |
| // for relative paths | |
| copy(Array.prototype.slice.call(document.body.querySelectorAll("a[href$='.flac']")).map(link => link.getAttribute('href')).map(url => [window.location.protocol, '//', window.location.host, window.location.pathname, url].join('')).join("\n")) | |
| // for absolute paths | |
| copy(Array.prototype.slice.call(document.body.querySelectorAll("a[href$='.flac']")).map(link => link.getAttribute('href')).map(url => [window.location.protocol, '//', window.location.host, url].join('')).join("\n")) |
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
| console.log(Object.getPrototypeOf(DivUm) === Component); |
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
| { | |
| "name": "nonono", | |
| "version": "0.0.0", | |
| "description": "xoxoxo", | |
| "scripts": { | |
| "start": "webpack-dev-server --hot --progress --colors -d", | |
| "build": "webpack --progress --colors --config webpack.production.js" | |
| }, | |
| "author": "Carlos Kazuo", | |
| "license": "ISC", |
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 gutil = require('gulp-util'); | |
| var gulp = require("gulp"); | |
| var browserify = require("browserify"); | |
| var babelify = require('babelify'); | |
| var reactify = require('reactify'); | |
| var watchify = require('watchify'); | |
| var source = require('vinyl-source-stream'); | |
| var browserSync = require('browser-sync'); | |
| var bundler = watchify(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
| # -*- mode: ruby -*- | |
| # vi: set ft=ruby : | |
| $init = <<SCRIPT | |
| sudo /home/vagrant/android-sdk-linux/platform-tools/adb kill-server | |
| sudo /home/vagrant/android-sdk-linux/platform-tools/adb start-server | |
| sudo /home/vagrant/android-sdk-linux/platform-tools/adb devices | |
| SCRIPT | |
| Vagrant.configure("2") do |config| |
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 | |
| browserSync = require('browser-sync'), | |
| gulp = require('gulp'), | |
| autoprefix = require('gulp-autoprefixer'), | |
| concat = require('gulp-concat'), | |
| filter = require('gulp-filter'), | |
| jade = require('gulp-jade'), | |
| sass = require('gulp-ruby-sass'), | |
| sourcemaps = require('gulp-sourcemaps'), | |
| traceur = require('gulp-traceur'), |
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 sprintf(){ | |
| var args = Array.prototype.slice.call(arguments), f:Array = [], str = args.shift().split("%s"); | |
| while (str.length) { | |
| f.push(str.shift(), args.shift() || ""); | |
| } | |
| return f.join(""); | |
| } | |
| trace(sprintf("Hello %s, how ya %s?", "motherf*cker", "durin")); |
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 parser = document.createElement('a'); | |
| parser.href = "http://example.com:3000/pathname/?search=test#hash"; | |
| parser.protocol; // => "http:" | |
| parser.hostname; // => "example.com" | |
| parser.port; // => "3000" | |
| parser.pathname; // => "/pathname/" | |
| parser.search; // => "?search=test" | |
| parser.hash; // => "#hash" | |
| parser.host; // => "example.com:3000" |
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
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="utf-8"> | |
| <meta http-equiv="x-ua-compatible" content="ie=edge, chrome=1"> | |
| <title>I need a title</title> | |
| <link rel="stylesheet" href="//netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css"> | |
| <script src="//static.folha.uol.com.br/library/modernizr/2.6.2/modernizr.js"></script> | |
| <script src="//static.folha.uol.com.br/library/jquery/1.8.3/jquery.js"></script> | |
| <script src="//static.folha.uol.com.br/folha/js/5.4/common/plugins.js?2014040802"></script> |