Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am sniperwolf on github.
  • I am sniperwolf (https://keybase.io/sniperwolf) on keybase.
  • I have a public key whose fingerprint is 21CB C159 795F 7579 9669 A60E B18B A7BA FD5B 3802

To claim this, I am signing this object:

@sniperwolf
sniperwolf / MySQL_basic_and_simple_cheatsheet.md
Last active September 6, 2022 04:02
MySQL Basic and Simple Cheatsheet
@sniperwolf
sniperwolf / main.js
Created October 21, 2014 22:26
Centering Bootstrap's Modals using JavaScript and CSS
/**
* Centering Modals of Twitter Bootstrap
*
* @return void
*/
(function () {
var adjust_modal_max_height_and_position, $window;
$window = $( window );
@sniperwolf
sniperwolf / FormBuilder.php
Last active August 29, 2015 14:07 — forked from stidges/FormBuilder.php
[Laravel v4] Using PSR-4 to change original Illuminate Form to support Bootstrap's Form style
<?php
namespace Acme\Html;
use Illuminate\Html\FormBuilder as IlluminateFormBuilder;
/**
* @link http://goo.gl/QDmRHn, http://goo.gl/tAchNE
*/
class FormBuilder extends IlluminateFormBuilder {
@sniperwolf
sniperwolf / ajax.php
Last active December 29, 2022 12:25
Super-Simple WordPress ajax post-popup with jQuery and Reveal plugin
<?php
/**
* Template Name: ajax
*/
?>
<?php
$post = get_post($_GET['id']);
?>
<?php if ($post) : ?>
<?php setup_postdata($post); ?>
@sniperwolf
sniperwolf / index.html
Last active September 6, 2022 12:42
Bounce Effect - Simple Bounce Effect using only jQuery (and not jQuery UI).
<div id="hopper"></div>