Skip to content

Instantly share code, notes, and snippets.

View ninetails's full-sized avatar
🏳️‍⚧️
traaa

Nina Kitsu ninetails

🏳️‍⚧️
traaa
View GitHub Profile
@ninetails
ninetails / gist:9278524
Created February 28, 2014 19:54
How to run docker with port forwarding & mounting folder
docker run -d -p 8080:80 -v /home/carlos/workspace:/var/www:ro tagname
@ninetails
ninetails / publicidade.js
Created March 30, 2014 02:39
this is a test that I will delete soon
/*! jQuery v1.8.3 jquery.com | jquery.org/license */
if ( typeof jQuery === 'undefined' ) {
(function(e,t){function _(e){var t=M[e]={};return v.each(e.split(y),function(e,n){t[n]=!0}),t}function H(e,n,r){if(r===t&&e.nodeType===1){var i="data-"+n.replace(P,"-$1").toLowerCase();r=e.getAttribute(i);if(typeof r=="string"){try{r=r==="true"?!0:r==="false"?!1:r==="null"?null:+r+""===r?+r:D.test(r)?v.parseJSON(r):r}catch(s){}v.data(e,n,r)}else r=t}return r}function B(e){var t;for(t in e){if(t==="data"&&v.isEmptyObject(e[t]))continue;if(t!=="toJSON")return!1}return!0}function et(){return!1}function tt(){return!0}function ut(e){return!e||!e.parentNode||e.parentNode.nodeType===11}function at(e,t){do e=e[t];while(e&&e.nodeType!==1);return e}function ft(e,t,n){t=t||0;if(v.isFunction(t))return v.grep(e,function(e,r){var i=!!t.call(e,r,e);return i===n});if(t.nodeType)return v.grep(e,function(e,r){return e===t===n});if(typeof t=="string"){var r=v.grep(e,function(e){return e.nodeType===1});if(it.test(t))return v.filter(t,
@ninetails
ninetails / gist:10069406
Created April 7, 2014 22:33
Gist for check redirects
var util = require('util'),
fs = require('fs'),
net = require('net'),
filename = './redir.txt',
useragents = [
{
name: 'Chrome 33.0.1750.152',
value: 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/33.0.1750.152 Safari/537.36'
},
{
@ninetails
ninetails / bootstrap.html
Created April 14, 2014 20:31
Bootstrap init misc with Initializr
<!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">
</head>
<body>
@ninetails
ninetails / ioswheel.html
Created April 30, 2014 22:57
iOS wheel select like in HTML5
<!DOCTYPE html>
<html>
<head><meta charset="UTF-8">
<title>Test</title>
<style>
body {
font: 400 12px/16px Arial, Helvetica, Sans-serif;
}
ul {
@ninetails
ninetails / index.html
Created May 17, 2014 02:31
Trying to make a AMD (Asynchronous Module Definition) approach to load jsonp
<!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>
@ninetails
ninetails / file1.md
Last active August 29, 2015 14:04
Studies on new trends for Frontend
@ninetails
ninetails / uri.js
Created August 24, 2014 21:20 — forked from jlong/uri.js
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"
@ninetails
ninetails / sprintf.as
Last active August 29, 2015 14:09 — forked from flesch/sprintf.as
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"));
@ninetails
ninetails / Gulpfile.js
Created January 21, 2015 00:11
another gulp attempt
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'),