Skip to content

Instantly share code, notes, and snippets.

View bichotll's full-sized avatar
😶
Doing stuff..

Jaume Tarradas Llort bichotll

😶
Doing stuff..
View GitHub Profile
_.replace(params[0], /(^[a-zA-Z])|(\.[a-zA-Z]\.)|((\[|\(\ )[a-zA-Z])/g, _.toUpper)
@bichotll
bichotll / package.json
Last active May 23, 2017 09:26
Proxy modifying and setting up permissive headers
{
"name": "web-proxy",
"version": "1.0.0",
"description": "",
"main": "index.js",
"dependencies": {
"http-proxy": "^1.16.2"
},
"devDependencies": {},
"scripts": {
@bichotll
bichotll / SassMeister-input.scss
Last active April 3, 2017 11:49
Proper at-root on multiple elements - Generated by SassMeister.com.
// ----
// Sass (v3.4.21)
// Compass (v1.0.3)
// ----
.parent {
&:hover,
&:focus,
&:active {
.child {
@bichotll
bichotll / gist:e54c01501ecba5c19252b93ea98398e4
Created February 23, 2017 11:46
Detect fullscreen on iframe
function changeHandler(e) {
console.log('fullscreen');
document.webkitCancelFullScreen()
//document.documentElement.webkitRequestFullScreen();
}
document.addEventListener("fullscreenchange", changeHandler, false);
document.addEventListener("webkitfullscreenchange", changeHandler, false);
document.addEventListener("mozfullscreenchange", changeHandler, false);
@bichotll
bichotll / index.html
Last active January 6, 2017 11:33 — forked from anonymous/index.html
Keypress.js bug testing - JS Bin// source http://jsbin.com/xajipev
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
<script src="http://cdn.rawgit.com/dmauro/Keypress/master/keypress.js"></script>
<script src="https://code.jquery.com/jquery-3.1.0.js"></script>
</head>
<body>
@bichotll
bichotll / components.clock-box.js
Last active October 1, 2016 22:24
test-performance
import Ember from 'ember';
export default Ember.Component.extend({
actions: {
updateTime(time) {
this.set('time', time);
}
}
});
@bichotll
bichotll / guid.js
Created September 8, 2016 15:06
guid generator
function guid() {
function s4() {
return Math.floor((1 + Math.random()) * 0x10000)
.toString(16)
.substring(1);
}
return s4() + s4() + '-' + s4() + '-' + s4() + '-' +
s4() + '-' + s4() + s4() + s4();
}
@bichotll
bichotll / index.html
Created September 5, 2016 09:01 — forked from anonymous/index.html
flickity smooth zoom effect w/ JSBin// source http://jsbin.com/rewukuguye
<!DOCTYPE html>
<html>
<head>
<script src="http://cdnjs.cloudflare.com/ajax/libs/react/15.3.1/react.js"></script>
<script src="http://cdnjs.cloudflare.com/ajax/libs/react/15.3.1/react-dom.js"></script>
<script src="http://cdnjs.cloudflare.com/ajax/libs/flickity/2.0.3/flickity.pkgd.js" ></script>
<meta charset="utf-8">
<style rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/flickity/2.0.3/flickity.min.css"></style>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
<style id="jsbin-css">
.tab-container {
padding: 15px;
}