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
# -*- coding: utf-8 -*- | |
""" | |
Markdown Third Party | |
============================ | |
This plugin allows you to use various third-party | |
Markdown extensions to make writing posts in Markdown | |
easier and better. | |
""" |
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
package dc; | |
import dc.DevConsoleInjector; | |
import haxe.macro.Context; | |
import haxe.macro.Expr; | |
typedef ConsoleCommand = { | |
var className:String; | |
var methodName:String; | |
} |
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
import luxe.importers.tiled.TiledMap; | |
import luxe.options.TilemapOptions; | |
import luxe.tilemaps.Ortho; | |
import luxe.tilemaps.Tilemap; | |
import phoenix.geometry.Geometry; | |
import phoenix.geometry.QuadPackGeometry; | |
import phoenix.Rectangle; | |
import phoenix.Texture; | |
import phoenix.Vector; |
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
// demoed at: http://luxe.blazingmammothgames.com/screenspacezoom | |
import luxe.Color; | |
import luxe.Input; | |
import luxe.Sprite; | |
import luxe.Vector; | |
import phoenix.Batcher; | |
import luxe.Camera; | |
class Main extends luxe.Game { | |
var worldSprite:Sprite; |
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] | |
history = log --pretty=format:'%C(cyan)%h%Cred%d %Creset%s%Cgreen [%cn] %C(blue)(%cr)' --decorate |
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 python | |
import psutil | |
while True: | |
print psutil.cpu_percent(interval=1, percpu=True) |
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 python | |
import urllib2 | |
# get the html of a url | |
def GetHTML(url): | |
# open it up | |
f = urllib2.urlopen(url) | |
str = f.read() | |
return str | |
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
class Derp { | |
// hold the rank of each derp here | |
int rank; | |
} | |
// now, we must make a comparator class which knows how to sort our Derp class: | |
class DerpComp implements Comparator<Derp> { | |
public int compare(Derp a, Derp b) { | |
// return -1 if a < b | |
if(a.rank < b.rank) |
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
\usepackage{multirow} | |
... | |
\begin{table}[H] | |
\begin{center} | |
\caption{Example} | |
\label{tab:example} | |
\begin{tabular}{lcc} | |
Column A & \multicolumn{2}{c}{Columns B and 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
\usepackage{xfrac} | |
... | |
\begin{itemize} | |
\item 1$\sfrac{1}{4}$ cups of sugar | |
\item $\sfrac{1}{2}$ cup of butter | |
\end{itemize} |
OlderNewer