Skip to content

Instantly share code, notes, and snippets.

View TangChr's full-sized avatar

Christian Tang TangChr

View GitHub Profile
@defunkt
defunkt / clients.md
Created April 18, 2010 14:09
A list of Gist clients.

Gist Clients

Want to create a Gist from your editor, the command line, or the Services menu? Here's how.

Editor Support

@partydrone
partydrone / MyMedia.lua
Last active November 30, 2023 21:38
My default Simple ElvUI profile for World of Warcraft
----------------------------------------------------------------------------
-- 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
@lontivero
lontivero / gist:593fc51f1208555112e0
Last active June 24, 2023 20:05
Generates Markdown from VS XML documentation file
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
{
@nimbupani
nimbupani / index.html
Created December 2, 2011 05:00
Showing latest post on home page with Jekyll
---
layout: default
---
<div class="blog-index">
{% assign post = site.posts.first %}
{% assign content = post.content %}
{% include post_detail.html %}
</div>
@neocotic
neocotic / jsonp.js
Last active January 19, 2021 20:19
Simple JSONP support
// 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
@wuziq
wuziq / git diff patch between branches.md
Created November 13, 2020 23:13 — forked from patkujawa-wf/git diff patch between branches.md
If you want to get the difference between two branches as a diff patch

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

@StollD
StollD / Kopernicus-Pictures.md
Last active December 20, 2018 23:09
Cool pictures from Kopernicus planets - http://git.io/vWAFE

Asteroids with VertexPlanet (@ThomasKerman): Asteroids with VertexPlanet

Triangular Rings (@ThomasKerman): Triangular Rings

Asteroid with VertexPlanet and custom PQSMod (@ThomasKerman): Asteroid with VertexPlanet and custom PQSMod

Mini-Minmus (GregroxMun):

@irazasyed
irazasyed / git-changelog.sh
Last active July 15, 2017 13:28
Shell: Generate Git-Changelog
#!/bin/sh
CHANGELOG_FILE=CHANGELOG.md
FORMAT=" * [%h](../../commit/%h) - %s"
if test "$CHANGELOG_FILE" != ""; then
rm -rf $CHANGELOG_FILE
touch $CHANGELOG_FILE
fi
@joshuadavidnelson
joshuadavidnelson / remove-feeds.php
Last active May 26, 2017 23:33 — forked from chrisguitarguy/remove-feeds.php
Remove all feeds from WordPress
<?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 );
anonymous
anonymous / my.css
Created September 20, 2015 01:55
CSS Gradient Animation
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%}