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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<script type="text/javascript" src="jquery-1.4.min.js"></script> | |
<script type="text/javascript" src="jquery.compat-1.3.js"></script> | |
<script type="text/javascript"> | |
$(document).ready(function() { | |
$('#admin .block.button').click(function() { | |
alert('Hello world!'); |
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
$statuses = array( | |
'open' => array( | |
'id' => 1, | |
'name' => 'Open', | |
'type' => 'open', | |
'filteronly' => false, | |
'sql' => 'issues.status = 0' | |
), | |
'unassigned' => array( | |
'id' => -1, |
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
#!/usr/bin/env ruby | |
# Input: WordPress XML export file. | |
# Outputs: a series of Textile files ready to be included in a Jekyll site, | |
# and comments.yml which contains all approved comments with metadata which | |
# can be used for a Disqus import. | |
# Changes from the original gist: http://gist.github.com/268428 | |
# 1. Handles titles containing special characters. Those have to be YAML escaped | |
# 2. Use the original permalinks in wordpress. |
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
#!/usr/bin/env ruby | |
# Written by Richard Z.H. Wang, based on wordpressxml2jekyll.rb | |
require 'rubygems' | |
require 'hpricot' | |
require 'clothred' | |
require 'time' | |
require 'yaml' | |
require 'fileutils' |
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
// HotkeyInputBox 0.1 (c) 2011 Richard Z.H. Wang | |
// MIT licensed. | |
using System; | |
using System.Collections.Generic; | |
using System.ComponentModel; | |
using System.Linq; | |
using System.Text; | |
using System.Windows.Forms; | |
using System.Runtime.InteropServices; |
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
cse_func() | |
{ | |
host='username@hostname' | |
if [ "$1" == 'push' ] ; then | |
location=$2 | |
files=`echo "$@" | cut -d' ' -f3-` | |
scp $files $host:"$location" | |
elif [ "$1" == 'pull' ]; then | |
if [ $# -gt 3 ]; then | |
echo "$0: to pull multiple files, write \{remote-file1,remote-file2,...\}" |
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 Windows.UI.Xaml; | |
using Windows.UI.Xaml.Markup; | |
using Windows.UI.Xaml.Media.Animation; | |
using Windows.UI.Interactivity; | |
namespace Windows.UI.Interactivity | |
{ | |
[ContentProperty(Name = "Storyboard")] | |
public class StoryboardAction : Windows.UI.Interactivity.TriggerAction<FrameworkElement> |
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
alias clang++='clang++ -I"/usr/lib/gcc/i686-pc-cygwin/4.7.3/include/c++/i686-pc-cygwin/" -I"/usr/lib/gcc/i686-pc-cygwin/4.7.3/include/c++/"' |
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 Cirrious.MvvmCross.ViewModels; | |
using System; | |
using System.Collections.Generic; | |
using System.Diagnostics.Contracts; | |
using System.Linq; | |
using System.Runtime.CompilerServices; | |
using System.Text; | |
using System.Threading.Tasks; | |
namespace Blah |
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
atom.workspaceView.getEditorViews()[0].scrollView.on('mousewheel', function(){alert('hi')}) | |
http://stackoverflow.com/a/21261771/77922 | |
jQuery = require('atom').$ | |
findEventHandlers("mousewheel", atom.workspaceView.getEditorViews()[0].scrollView) | |
atom.workspaceView.getActiveView().is(".editor") |
OlderNewer