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
// https://github.com/zerkalica/zerollup/tree/master/packages/ts-transform-paths | |
const ttypescript = require('ttypescript'); | |
const typescript = require('rollup-plugin-typescript2'); | |
module.exports = { | |
rollup(config, options) { | |
const rpt2Plugin = config.plugins.find(p => p.name === 'rpt2'); | |
const rpt2PluginIndex = config.plugins.indexOf(rpt2Plugin); | |
const tsconfigPath = options.tsconfig || 'tsconfig.json'; |
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 | |
# | |
# This hook does two things: | |
# | |
# 1. update the "info" files that allow the list of references to be | |
# queries over dumb transports such as http | |
# | |
# 2. if this repository looks like it is a non-bare repository, and | |
# the checked-out branch is pushed to, then update the working copy. | |
# This makes "push" function somewhat similarly to darcs and bzr. |
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
# ~/.gitconfig | |
# credits: https://gist.github.com/1637874 | |
[alias] | |
s = status | |
df = diff --color-words | |
co = checkout | |
cm = commit -am | |
l = log --graph --pretty=format:'%C(yellow)%h%C(cyan)%d%Creset %s %C(white)- %an, %ar%Creset' | |
alias = !git config --list | grep 'alias\\.' | sed 's/alias\\.\\([^=]*\\)=\\(.*\\)/\\1\\\t => \\2/' | sort | |
[core] |
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
/*** Edits to wp-includes/post.php ***/ | |
// Add this method | |
// | |
function wp_get_pages( $args = array(), $output = ARRAY_A ) { | |
if ( is_numeric( $args ) ) { | |
_deprecated_argument( __FUNCTION__, '3.1', __( 'Passing an integer number of posts is deprecated. Pass an array of arguments instead.' ) ); | |
$args = array( 'numberposts' => absint( $args ) ); | |
} |
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
// ==UserScript== | |
// @name 'o' shortcut for new Twitter | |
// @description Adds an 'o' shortcut to open any shared links in selected tweet in a new tab in the background. If no link is found, looks for @usernames. And finally if no usernames, looks for hashtags. | |
// @include http://twitter.com/* | |
// @author Ankit Ahuja | |
// ==/UserScript== | |
// DISCLAIMER: Only tested on Chrome! | |
document.addEventListener('keyup', function(e) { |
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
input.search-button { | |
display: none; | |
} | |
#myDynamicContent { | |
display: none; | |
} | |
#adaptvDiv { | |
display: none; |
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
#notify--1 { | |
display: none; | |
} | |
#notify-2 { | |
display: none; | |
} | |
#notify-container { | |
display: none; |
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
#bnrTop object { | |
display: none; | |
} | |
#skyAd a img { | |
display: none; | |
} | |
#centerAd object { | |
display: none; |
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
/* | |
For news.ycombinator.com | |
*/ | |
td.title { | |
padding-top: 20px; | |
color: #f0f0f0; | |
} | |
body { |
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
#menu li a { | |
text-transform: lowercase; | |
font-weight: normal; | |
font-family: Palatino, "Palatino Linotype", serif; | |
} | |
#page_submenu_outer { | |
display: none; | |
} |
NewerOlder