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
var parser = require('./parser'); | |
parser._performAction = parser.performAction; | |
parser.performAction = function anonymous(yytext,yyleng,yylineno,yy,yystate,$$,_$) { | |
var ret = parser._performAction.call(this, yytext, yyleng, yylineno, yy, yystate, $$, _$); | |
// do stuff | |
if (this.$._type) { | |
this.$.lineNo = yylineno; | |
} | |
return ret; |
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> | |
<head> | |
<!-- Head is the container for all of the head elements --> | |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> | |
<title>QUT Video Gaming Society</title> | |
<!-- The title is what is shown in the window of the browser or in the tab of the browser --> | |
<meta name="description" content="Come join us play Video Games at QUT" /> | |
<!-- This is the meta tag for the description of the website which will be given to search engines --> | |
<link rel="stylesheet" type="text/css" href="stylesheet.css" /> |
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
/* description: Basic multi-line calculator */ | |
%lex | |
%% | |
[^\n\S]+ /* ignore whitespace */ | |
[0-9]+ { return 'INT' } | |
(\n|\;) { return 'TERMINATOR' } | |
"-" { return '-' } | |
"+" { return '+' } |
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
// jQuery.support.transition | |
// to verify that CSS3 transition is supported (or any of its browser-specific implementations) | |
$.support.transition = (function(){ | |
var thisBody = document.body || document.documentElement, | |
thisStyle = thisBody.style, | |
support = thisStyle.transition !== undefined || thisStyle.WebkitTransition !== undefined || thisStyle.MozTransition !== undefined || thisStyle.MsTransition !== undefined || thisStyle.OTransition !== undefined; | |
return support; | |
})(); |
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
/*========================================================== | |
Open Sans | |
==========================================================*/ | |
@font-face { | |
font-family: 'OpenSans'; | |
src: url('../fonts/OpenSans-Light-webfont.eot'); | |
src: url('../fonts/OpenSans-Light-webfont.eot?#iefix') format('embedded-opentype'), | |
url('../fonts/OpenSans-Light-webfont.woff') format('woff'), | |
url('../fonts/OpenSans-Light-webfont.ttf') format('truetype'), |
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 | |
# © Andrew Cobby <[email protected]> | |
# Creates shortcuts to log into remote servers | |
# Setup private/public key auth for passwordless logins | |
# USAGE: $ ./connect-to.sh example | |
# Defaults | |
user="root" |
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 <stdio.h> | |
#include <stdint.h> | |
#include <stdlib.h> | |
#include <errno.h> | |
#include <string.h> | |
#include <time.h> | |
#include <sys/types.h> | |
#include <sys/mman.h> | |
#include <sys/utsname.h> |
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
var VM = { | |
cpu: { | |
ip: 0x00, | |
r0: 0x00, | |
r1: 0x00, | |
r2: 0x00, | |
r3: 0x00, | |
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
<?xml version="1.0"?> | |
<Invoices> | |
<Invoice> | |
<Type>ACCREC</Type> | |
<Contact> | |
<ContactID>427f9f6c-8d02-403b-9e8b-e22a77a33c05</ContactID> | |
</Contact> | |
<InvoiceNumber>11001691</InvoiceNumber> | |
<DueDate>2011-10-30</DueDate> | |
<Date>2011-10-24</Date> |
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
/* make links move down 1px when clicked */ | |
a:active { | |
position: relative; | |
top: 1px; | |
} |