Skip to content

Instantly share code, notes, and snippets.

View marceux's full-sized avatar
🤽
playing waterpolo, duh

Marco Salazar de Leon marceux

🤽
playing waterpolo, duh
View GitHub Profile
@marceux
marceux / # vim - 2018-01-10_14-01-24.txt
Created January 10, 2018 22:10
vim on macOS 10.12.6 - Homebrew build logs
Homebrew build logs for vim on macOS 10.12.6
Build date: 2018-01-10 14:01:24
@marceux
marceux / grabGfyName.php
Created September 19, 2014 05:16
gfyCat gfyName Grabber
<?php
/**
* Function for grabbing the gfyName from a gfyCat link...
*/
function grabGfyName ($url) {
$pattern = '/((https?:)?\/\/)?(.+?\.)?gfycat\.com\/(.+)/';
$matches = array();
preg_match ($pattern, $url, $matches);
@marceux
marceux / vertical-centering.css
Last active August 29, 2015 14:06
CSS Vertical Centering
/* This parent can be any width and height */
.block {
// Any Property
}
/* The ghost, nudged to maintain perfect centering */
.block:before {
content: '';
display: inline-block;
height: 100%;
@marceux
marceux / bs-navbar-fixed-top.html
Last active August 29, 2015 14:06
Bootstrap - Simple Navbar Fixed Top
<header class="page-header">
<nav class="navbar navbar-default navbar-fixed-top" role="navigation">
<div class="container-fluid">
<!-- Brand and toggle get grouped for better mobile display -->
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#page-navbar-collapse">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>