#!/bin/sh | |
### | |
# SOME COMMANDS WILL NOT WORK ON macOS (Sierra or newer) | |
# For Sierra or newer, see https://github.com/mathiasbynens/dotfiles/blob/master/.macos | |
### | |
# Alot of these configs have been taken from the various places | |
# on the web, most from here | |
# https://github.com/mathiasbynens/dotfiles/blob/5b3c8418ed42d93af2e647dc9d122f25cc034871/.osx |
These are my notes basically. At first i created this gist just as a reminder for myself. But feel free to use this for your project as a starting point. If you have questions you can find me on twitter @thomasf https://twitter.com/thomasf This is how i used it on a Debian Wheezy testing (https://www.debian.org/releases/testing/)
Discuss, ask questions, etc. here https://news.ycombinator.com/item?id=7445545
Example: You have a branch refactor
that is quite different from master
. You can't merge all of the
commits, or even every hunk in any single commit or master will break, but you have made a lot of
improvements there that you would like to bring over to master.
Note: This will not preserve the original change authors. Only use if necessary, or if you don't mind losing that information, or if you are only merging your own work.
On master:
> git co -b temp
<meta property="og:title" content="" /> <!-- post/page title --> | |
<meta property="og:type" content="" /> <!-- post/page type --> | |
<meta property="og:image" content="" /> <!-- post/page image --> | |
<meta property="og:url" content="" /> <!-- post/page url --> | |
<meta property="og:description" content="" /> <!-- post/page description --> | |
<meta property="og:site_name" content="" /> <!-- Site Name --> |
$(window).scroll(function(e){ | |
parallax(); | |
}); | |
function parallax() { | |
var scrolled = $(window).scrollTop(); | |
//81% is the original top position of the element, |
/* Generates current template file name - For debugging only! */ | |
add_filter( 'template_include', 'var_template_include', 1000 ); | |
function var_template_include( $t ){ | |
$GLOBALS['current_theme_template'] = basename($t); | |
return $t; | |
} | |
function get_current_template( $echo = false ) { | |
if( !isset( $GLOBALS['current_theme_template'] ) ) | |
return false; |
// Mobile First | |
@media screen and (min-width: 321px) { // iPhone landscape | |
} | |
@media screen and (min-width: 481px) { // iPad portrait | |
} |
<?php | |
/* | |
* Remove any unwanted widgets... | |
* | |
* WP_Widget_Pages = Pages Widget | |
* WP_Widget_Calendar = Calendar Widget | |
* WP_Widget_Archives = Archives Widget | |
* WP_Widget_Links = Links Widget | |
* WP_Widget_Meta = Meta Widget | |
* WP_Widget_Search = Search Widget |