Skip to content

Instantly share code, notes, and snippets.

View MuTLY's full-sized avatar
🎯
Focusing

Leandro Barbosa MuTLY

🎯
Focusing
View GitHub Profile
@MuTLY
MuTLY / robot.js
Created December 4, 2012 17:09
Flamingo Killer
//FightCode can only understand your robot
//if its class is called Robot
var Robot = function(robot) {
};
Robot.prototype.onWallCollision = function(ev) {
var robot = ev.robot;
robot.turn(35);
robot.back(200);
@MuTLY
MuTLY / table-filter.css
Last active September 25, 2015 16:31
Table Column Filters
.even {
background: #ccc;
}
.odd {
background: #fff;
}
@MuTLY
MuTLY / trigram.html
Created November 26, 2015 20:44 — forked from tkadlec/trigram.html
Trigram for heaven icon
<!DOCTYPE html>
<html>
<head>
<title>Trigram for heaven icon</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<style type="text/css">
li {
list-style-type: none;
}
@MuTLY
MuTLY / gist:71d18e07f044e4fb0f75
Created March 28, 2016 19:18 — forked from donnierayjones/LICENSE
Render Bootstrap as "small" layout when printing
@media print {
.col-sm-1, .col-sm-2, .col-sm-3, .col-sm-4, .col-sm-5, .col-sm-6, .col-sm-7, .col-sm-8, .col-sm-9, .col-sm-10, .col-sm-11, .col-sm-12 {
float: left;
}
.col-sm-12 {
width: 100%;
}
.col-sm-11 {
width: 91.66666667%;
}
@MuTLY
MuTLY / gist:b8adcf18149404430608
Created March 29, 2016 02:25 — forked from rjacoby/gist:46f7ceb900f97b0cc8f4
Facebook STOP! console code
__d("Chromedome", ["fbt"], function(a, b, c, d, e, f, g) {
f.start = function(h) {
if (h.off || top !== window ||!/(^|\.)facebook\.com$/.test(document.domain))
return;
var i = h.stop || "Stop!", j = h.text || "This is a browser feature intended for developers. If someone told you to copy-paste something here to enable a Facebook feature or \"hack\" someone's account, it is a scam and will give them access to your Facebook account.", k = h.more || g._("For more information, see {url}.", [g.param("url", 'https://www.facebook.com/selfxss')]);
if ((window.chrome || window.safari)&&!h.textonly) {
var l = 'font-family:helvetica; font-size:20px; ';
[[i, h.c1 || l + 'font-size:50px; font-weight:bold; ' + 'color:red; -webkit-text-stroke:1px black;'], [j, h.c2 || l], [k, h.c3 || l], ['', '']].map(function(r) {
setTimeout(console.log.bind(console, '\n%c' + r[0], r[1]));
});
@MuTLY
MuTLY / Custom SELECT with CSS only
Created May 4, 2016 18:31 — forked from anonymous/index.html
Select styles with CSS only// source http://jsbin.com/horebic
<!doctype html>
<html>
<head>
<title>Select styles with CSS only</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<style>
/* Some basic page styles */
body {
background-color: #fff;
font-family: helvetica, sans-serif;
// tries to execute the uri:scheme
function uriSchemeWithHyperlinkFallback(uri, href) {
if(!window.open(uri)){
window.location = href;
}
}
@MuTLY
MuTLY / select-text-range.js
Last active March 1, 2017 20:11 — forked from beiyuu/select-text-range.js
jQuery:Select a text range (input/textarea)
//USE CASE
$('#q').selectRange();
$('#q').selectRange(0, 10);
$('#q').selectRange(searchVal.indexOf('{'), (searchVal.indexOf('}')+1));
$.fn.selectRange = function(start, end) {
if (!start || !end) {
start = 0;
end = 9999;
}
@MuTLY
MuTLY / profiles.json
Created September 3, 2019 16:13
Windows Terminal - Git Bash
{
"globals" :
{
"alwaysShowTabs" : true,
"defaultProfile" : "{61c54bbd-c2c6-5271-96e7-009a87ff44bf}",
"initialCols" : 145,
"initialRows" : 40,
"keybindings" :
[
{
@MuTLY
MuTLY / keyboard-keys.md
Created April 24, 2020 15:54 — forked from bittner/keyboard-keys.md
Keyboard keys markup in MarkDown

Ctrl + Alt + Space