Want to create a Gist from your editor, the command line, or the Services menu? Here's how.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
---------------------------------------------------------------------------- | |
-- Copy this section of the file to a file called MyMedia.lua, and enter | |
-- your media's information, using the examples shown below. | |
---------------------------------------------------------------------------- | |
local LSM = LibStub("LibSharedMedia-3.0") | |
-- START of the section that you should be editing | |
-- | |
-- NB: any line beginning with "--" is ignored - so the lines |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.IO; | |
using System.Linq; | |
using System.Text.RegularExpressions; | |
using System.Xml; | |
using System.Xml.Linq; | |
namespace GithubWikiDoc | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
layout: default | |
--- | |
<div class="blog-index"> | |
{% assign post = site.posts.first %} | |
{% assign content = post.content %} | |
{% include post_detail.html %} | |
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Simple JSONP support | |
// (c) 2011 [neocotic](http://github.com/neocotic) | |
// Released under the MIT License | |
// http://en.wikipedia.org/wiki/MIT_License | |
(function (root) { | |
var previousJSONP = root.JSONP; | |
root.JSONP = { | |
__callbacks : {}, | |
get : function (url, callback, context) { | |
var |
If you want to get the difference between two branches, say master and branch-name, use the following command:
git diff master..branch-name
If you want that same diff in a patch, because patches are handy, just add the output redirect:
git diff master..branch-name > branch-name.patch
If you need to import that patch into something like Crucible then you'll need to get rid of the a and b prefixes that git adds:
git diff --no-prefix master..branch-name > branch-name.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
CHANGELOG_FILE=CHANGELOG.md | |
FORMAT=" * [%h](../../commit/%h) - %s" | |
if test "$CHANGELOG_FILE" != ""; then | |
rm -rf $CHANGELOG_FILE | |
touch $CHANGELOG_FILE | |
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_action( 'wp_head', 'remove_feeds_from_wp_head', 1 ); | |
/** | |
* Remove feed links from wp_head | |
*/ | |
function remove_feeds_from_wp_head() { | |
// Remove feed links | |
remove_action( 'wp_head', 'feed_links', 2 ); | |
remove_action( 'wp_head', 'feed_links_extra', 3 ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
background: linear-gradient(270deg, #ff0404, #ff9400, #f9ff00, #00ff15, #0600ff, #af00ff); | |
background-size: 1200% 1200%; | |
-webkit-animation: AnimationName 3s ease infinite; | |
-moz-animation: AnimationName 3s ease infinite; | |
-o-animation: AnimationName 3s ease infinite; | |
animation: AnimationName 3s ease infinite; | |
@-webkit-keyframes AnimationName { | |
0%{background-position:0% 50%} | |
50%{background-position:100% 50%} | |
100%{background-position:0% 50%} |
NewerOlder