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
#include <glib.h> | |
typedef struct { | |
GSList *stack; | |
} MachineState; | |
static void machine_push (MachineState *state, int v); | |
static int machine_pop (MachineState *state); | |
/* pushes an operand onto the operand stack */ |
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 ReplaceMetadataTest(BasicUserTestCase, TestCase): | |
def test_replace_metadata(self): | |
test_zipfile = get_test_zipfile('LotsOfFiles') | |
metadata = models.parse_zipfile_metadata(test_zipfile) | |
test_zipfile.seek(0) | |
new_path = default_storage.save('LotsOfFiles.zip', File(test_zipfile)) | |
test_zipfile.close() |
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 collections | |
import math | |
import operator | |
import re | |
import string | |
VALID_ID = re.compile('[a-zA-Z$_][a-zA-Z0-9$_]*$') | |
BASIC_TOKENS = [ |
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 collections | |
import math | |
import operator | |
import re | |
import string | |
VALID_ID = re.compile('[a-zA-Z$_][a-zA-Z0-9$_]*$') | |
BASIC_TOKENS = [ |
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 ast | |
import math | |
import operator | |
OPERS = { | |
ast.Add: operator.add, | |
ast.Sub: operator.sub, | |
ast.Mult: operator.mul, | |
ast.Div: operator.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
summary for asctest.abc, 178.0 bytes | |
constants: | |
ints: | |
ints[0] = 0 | |
uints: | |
uints[0] = 0 | |
doubles: | |
doubles[0] = nan | |
utf8: | |
utf8[0] = '' |
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
"use strict"; | |
define(['jquery'], function($) { | |
// Each table row has four columns: | |
// =================================================================== | |
// | Old Line Number | Old Contents | New Line Number | New Contents | | |
// | |
// Each "buildChunk" function below should build full row(s). |
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
#include <gtk/gtk.h> | |
int | |
main(int argc, char* argv[]) { | |
GtkWidget *window; | |
cairo_region_t *input_region; | |
gtk_init (&argc, &argv); | |
window = gtk_window_new (GTK_WINDOW_TOPLEVEL); |
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
// application/javascript;version=1.8 | |
const Lang = imports.lang; | |
const GLib = imports.gi.GLib; | |
const GObject = imports.gi.GObject; | |
const Clutter = imports.gi.Clutter; | |
const Cogl = imports.gi.Cogl; | |
Clutter.init(null); |
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
// A container like StBin, but taking the child's scale into account | |
// when requesting a size | |
const DashItemContainer = new Lang.Class({ | |
Name: 'DashItemContainer', | |
Extends: St.Container, | |
_init: function() { | |
this.parent({ style_class: 'dash-item-container' }); | |
this._delegate = this; |