Skip to content

Instantly share code, notes, and snippets.

View miguel-perez's full-sized avatar

Miguel Pérez miguel-perez

View GitHub Profile
@miguel-perez
miguel-perez / README.md
Last active August 29, 2015 14:04
Barebones implementation of jQuery.smoothState.js

By default, jQuery.smoothState.js will:

  • Prevent links from triggering a full page load
  • Update the user's URLs and history as to not break browsing expectations
  • Use Ajax to request and cache on the user's device
@miguel-perez
miguel-perez / about.html
Last active August 29, 2015 14:04 — forked from deenath/about.html
#4: Help Sample
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>About - Document</title>
<script src="js/jquery-1.11.1.min.js"></script>
<script src="js/jquery.smoothState.js"></script>
<script src="js/scripts.js"></script>
</head>
<body>
@miguel-perez
miguel-perez / Isometric-game-grid.markdown
Created July 3, 2014 03:05
A Pen by Miguel Ángel Pérez.
// Run in console while a boost is active.
var autoVisitMatches = function(){
jQuery('#spotlight .thumbs .match').each(function(){
var match = jQuery(this),
url = match.attr('href'),
popup = window.open(url);
// Removes Matches I have already Opened
match.remove();
// Run this in your console on the match page
var count = 0,
repeat = 3, // total number of times the script will repeat
matchTolerance = 60; // match percent tolerance
// Master Loop
function cardLoop() {
console.log('Start Loop');
count ++;
@miguel-perez
miguel-perez / demo.md
Last active December 27, 2015 19:59
Breaking up long pieces of text with html and css

Breaking up long pieces of text

Questions? Hit me up: @Tayokoart

Text Annotations With Ruby Markup

Questions? Hit me up: @Tayokoart

Prevent the Translation of Certain Text

Questions? Hit me up: @Tayokoart

@miguel-perez
miguel-perez / demo.md
Created November 9, 2013 03:15
Styling a specific language

How to Style a Specific Language

Questions? Hit me up: @Tayokoart

@miguel-perez
miguel-perez / demo.md
Last active December 27, 2015 19:59
Detect your user's language

Detect your user's language

Questions? Hit me up: @Tayokoart