Skip to content

Instantly share code, notes, and snippets.

View angelorubin's full-sized avatar

Ângelo Rogério Rubin angelorubin

View GitHub Profile
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Acerte o Número</title>
<script src="//cdnjs.cloudflare.com/ajax/libs/jquery/2.1.1/jquery.min.js" type="text/javascript"></script>
<link href="//maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css" rel="stylesheet">
<script src="//maxcdn.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.min.js"></script>
<script>
$(function(){
//--------------INFO----------------//
// Desarrollador: Iván Barcia
// Sitio Web: http://ivanbarcia.eu
// Hecho en: Galicia, España
// Nombre: Slidx
// Versión: 3.0
// Sitio Web: https://github.com/ivarcia/codelab-slidx
//----------------------------------//
/*
SlidesJS 3.0.4 http://slidesjs.com
(c) 2013 by Nathan Searles http://nathansearles.com
Updated: June 26th, 2013
Apache License: http://www.apache.org/licenses/LICENSE-2.0
*/
(function(){(function(e,t,n){var r,i,s;s="slidesjs";i={width:940,height:528,start:1,navigation:{active:!0,effect:"slide"},pagination:{active:!0,effect:"slide"},play:{active:!1,effect:"slide",interval:5e3,auto:!1,swap:!0,pauseOnHover:!1,restartDelay:2500},effect:{slide:{speed:500},fade:{speed:300,crossfade:!0}},callback:{loaded:function(){},start:function(){},complete:function(){}}};r=function(){function t(t,n){this.element=t;this.options=e.extend(!0,{},i,n);this._defaults=i;this._name=s;this.init()}return t}();r.prototype.init=function(){var n,r,i,s,o,u,a=this;n=e(this.element);this.data=e.data(this);e.data(this,"animating",!1);e.data(this,"total",n.children().not(".slidesjs-navigation",n).length);e.data(this,"current",this.options.start-1);e.data(this,"vendorPrefix",this._getVendorPrefix());if(typeof TouchEvent!="undefined"){e
@angelorubin
angelorubin / jquery
Last active August 29, 2015 14:25
jquery
/*!
* jQuery JavaScript Library v3.0.0-alpha1
* http://jquery.com/
*
* Includes Sizzle.js
* http://sizzlejs.com/
*
* Copyright jQuery Foundation and other contributors
* Released under the MIT license
* http://jquery.org/license

LUIZ FERNANDO VERÍSSIMO

TUDO QUE VICIA COMEÇA COM C

"Tudo que vicia começa com C. Por alguma razão que ainda desconheço, minha mente foi tomada por uma ideia um tanto sinistra: vícios.

Refleti sobre todos os vícios que corrompem a humanidade. Pensei, pensei e, de repente, um insight: tudo que vicia começa com a letra C!

De drogas leves a pesadas, bebidas, comidas ou diversões, percebi que todo vício curiosamente iniciava com cê. Inicialmente, lembrei do cigarro que causa mais dependência que muita droga pesada.

@angelorubin
angelorubin / Ecma6Ctrl.php
Last active September 2, 2015 20:45
route-ecma6-controller
Route::get(‘ecma6’, [‘as’ => ‘index’, ‘uses’ => ‘Ecma6Ctrl@index’]);
public function index() {
return view(‘ecma6.index’);
}
class Ecma6Ctrl extends Controller {
/* use ... */
public function index() {
return view(‘ecma6.index’);
}
}
<!-- app/resources/view/ecma6/index.php -->
<!DOCTYPE html>
<html>
<head>
<title>Ecma6</title>
</head>
<body>
<h2>Laravel 5 — Elixir (Browserify) e Ecmascript 6</h2>
<script src=”js/bundle.js”></script>
</body>
<!-- app/resources/assets/js/a.js -->
“use strict”;
class A {
testA()
{
console.log(‘TEST A’);
}
}