Skip to content

Instantly share code, notes, and snippets.

View bunnywong's full-sized avatar
🙃
code for food

BunnY bunnywong

🙃
code for food
View GitHub Profile
@aarongustafson
aarongustafson / backup-to-git.sh
Created August 10, 2011 15:44
DB Backup to Git
#!/bin/bash
##
# MySQL DB dump to Git commit
#
# Dumps the specified mysql database to the given location and commits it and
# the previous database to the Git repository.
#
# It is assumed you have already setup the Git respository to only be the
# a checkout of the database backup location
@lancejpollard
lancejpollard / meta-tags.md
Created March 5, 2012 13:54
Complete List of HTML Meta Tags

Copied from http://code.lancepollard.com/complete-list-of-html-meta-tags/

Basic HTML Meta Tags

<meta name="keywords" content="your, tags"/>
<meta name="description" content="150 words"/>
<meta name="subject" content="your website's subject">
<meta name="copyright"content="company name">
<meta name="language" content="ES">
@Adirael
Adirael / fix-wordpress-permissions.sh
Created August 17, 2012 23:16
Fix wordpress file permissions
#!/bin/bash
#
# This script configures WordPress file permissions based on recommendations
# from http://codex.wordpress.org/Hardening_WordPress#File_permissions
#
# Author: Michael Conigliaro <mike [at] conigliaro [dot] org>
#
WP_OWNER=www-data # <-- wordpress owner
WP_GROUP=www-data # <-- wordpress group
WP_ROOT=$1 # <-- wordpress root directory
@speednos
speednos / indexHitmanFade.html
Last active December 14, 2015 08:19
A CodePen by speednos. Hitman Loading Sequence - Logo and loading sequence with CSS3
<div class="loader">
<span class="h"></span>
<span class="h"></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
@zxteloiv
zxteloiv / reverse.php
Created February 28, 2013 13:56
reverse Chinese characters per line
#!/usr/local/php/bin/php
<?php
function cstrrev($str)
{
$len = strlen($str);
for($i = 0; $i < $len; $i++)
{
$char = $str{0};
if(ord($char) > 127)
anonymous
anonymous / index.html
Created April 16, 2013 14:31
A CodePen by Joey. Neat subscribe form. - I don't usually use jQuery, but for this. It was a must. - Hope you enjoy.
<section>
<input placeholder="Enter your email">
<a id="button" href="#">Subscribe</a>
<h1>happy subscribing</h1>
</section>
{
"pt": "NORMAL ITEM",
"evf": "0",
"ev": [],
"prodrid": "prod3090209",
"prodid": "prod3090209",
"id": "prod3090209",
"n": "Hand-painted Oil Reproduction of Edward Henry Potthast's <i>Lake Louise, British Columbia<\/i>.",
"mn": "POTTHAST - LAKE LOUI",
"sd": "Own a piece of history with a hand-painted reproduction of this famous artwork. Why settle for prints when you can have the next best thing to the original?",
@yoavniran
yoavniran / ultimate-ut-cheat-sheet.md
Last active July 12, 2024 11:15
The Ultimate Unit Testing Cheat-sheet For Mocha, Chai, Sinon, and Jest
@dannguyen
dannguyen / go-yahoo.md
Last active June 8, 2020 15:47
Downloading Yahoo Finance data in CSV form for before and after Trump
@cb109
cb109 / breakpoint.js
Last active May 5, 2022 15:40
Vue Breakpoints Mixin (also available via npm: https://www.npmjs.com/package/vue-md-breakpoint)
// Now officially integrated into Vuetify:
//
// https://github.com/vuetifyjs/vuetify/blob/master/src/components/VApp/mixins/app-breakpoint.js
// https://github.com/vuetifyjs/vuetify/blob/master/src/components/VApp/mixins/app-breakpoint.spec.js
/**
* A Vue mixin to get the current width/height and the associated breakpoint.
*
* Useful to e.g. adapt the user interface from inside a Vue component
* as opposed to using CSS classes. The breakpoint pixel values and