Skip to content

Instantly share code, notes, and snippets.

View heroheman's full-sized avatar
🏠
Working from home

Flowrence heroheman

🏠
Working from home
View GitHub Profile
@heroheman
heroheman / example.html
Created August 13, 2013 11:07 — forked from millermedeiros/example.html
Node: Include *.html files
<!DOCTYPE html>
<!-- #include "inc_header.html" title="Example" header="Sample Title" -->
<html>
<head>
<meta charset="utf-8">
<title>Example</title>
<link rel="stylesheet" href="css/main.css">
</head>
<body>
<h1>Sample Title</h1>
@heroheman
heroheman / gist:5829357
Last active December 18, 2015 18:59 — forked from lucasfais/gist:1207002
ST2: Shortcuts - Mac

Sublime Text 2 – Useful Shortcuts (Mac OS X)

General

⌘T go to file
⌘⌃P go to project
⌘R go to methods
⌃G go to line
⌘KB toggle side bar
⌘⇧P command prompt
// jQuery.support.transition
// to verify that CSS3 transition is supported (or any of its browser-specific implementations)
$.support.transition = (function(){
var thisBody = document.body || document.documentElement,
thisStyle = thisBody.style,
support = thisStyle.transition !== undefined || thisStyle.WebkitTransition !== undefined || thisStyle.MozTransition !== undefined || thisStyle.MsTransition !== undefined || thisStyle.OTransition !== undefined;
return support;
})();
@heroheman
heroheman / Preferences.sublime-settings
Created August 1, 2012 14:45
Sublime Text 2 Preferences
{
// Theme Settings
// "theme": "Soda Dark.sublime-theme",
// "theme": "Nil.sublime-theme",
// "color_scheme": "Packages/Color Scheme - Default/Twilight.tmTheme",
// "color_scheme": "Packages/Theme - Flatland/Flatland Dark.tmTheme",
// "theme": "Flatland Dark.sublime-theme",
"theme": "Nexus.sublime-theme",
"color_scheme": "Packages/Theme - Nexus/Nexus.tmTheme",
"caret_style": "phase",
@heroheman
heroheman / gist:3121740
Created July 16, 2012 09:19 — forked from sergeimuller/gist:3121577
Wordpress: Recommended File & Folder Permissions
Root directory 0755
wp-admin 0755
wp-content 0755
wp-includes 0755
.htaccess 0640
readme.html 0400
wp-config.php 0644
wp-admin/index.php 0644
wp-admin/.htaccess 0640
@heroheman
heroheman / gist:3071097
Created July 8, 2012 14:11 — forked from edhedges/gist:2995805
Sublime Text 2 - Useful Shortcuts (Mac OS X)

Sublime Text 2 – Useful Shortcuts (Mac OS X)

General

⌘T go to file
⌘⌃P go to project
⌘R go to methods
⌃G go to line
⌘KB toggle side bar
⌘⇧P command prompt
@heroheman
heroheman / wpinstall.sh
Created June 15, 2012 14:31 — forked from alessandro-fazzi/wpinstall.sh
Bash: Install Wordpress with a single Command
#!/bin/bash
#Install latest WordPress release in a specific path
#and don't bother any more! :)
if [[ ! $1 ]]; then
echo "Please, pass to me destination path as first argument! :)"
exit 1
fi
path=$1
@heroheman
heroheman / .htaccess
Created March 21, 2012 00:04 — forked from ScottPhillips/.htaccess
htaccess: 301 Redirects
#301 Redirects for .htaccess
#Redirect a single page:
Redirect 301 /pagename.php http://www.domain.com/pagename.html
#Redirect an entire site:
Redirect 301 / http://www.domain.com/
#Redirect an entire site to a sub folder
Redirect 301 / http://www.domain.com/subfolder/