This file contains hidden or 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
// Take a look at the other file below. | |
// Basically, since OpenGL is a core feature of OSX, you don't need to include GLEW. | |
/* | |
So, for example, you can put a conditional include like so: | |
#ifdef __APPLE__ | |
#include <OpenGL/gl3.h> /// remove the "3" for OpenGL versions < 3 | |
#include <OpenGL/gl3ext.h> /// ditto |
This file contains hidden or 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
select | |
i.[object_id], | |
i.[index_id], | |
OBJECT_SCHEMA_NAME( i.object_id, DB_ID() ) as SchemaName, | |
t.[name] as TableName, | |
i.[name] as IndexName, | |
( | |
case i.[fill_factor] | |
when 0 then 100 | |
else i.fill_factor |
This file contains hidden or 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
<link rel="import" href="../core-icon-button/core-icon-button.html"> | |
<link rel="import" href="../core-toolbar/core-toolbar.html"> | |
<polymer-element name="my-element"> | |
<template> | |
<style> | |
:host { | |
position: absolute; | |
width: 100%; |
This file contains hidden or 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
.importonce | |
//*************************************************************************** | |
// VIC II | |
// BANK 0: $0000 - $3FFF | |
// BANK 1: $4000 - $7FFF | |
// BANK 2: $8000 - $BFFF | |
// BANK 3: $C000 - $FFFF | |
//*************************************************************************** |
This file contains hidden or 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
/** | |
* <strong>This implementation does not use lazy loading and performs | |
* <b>extremely</b> bad when the number of items is large! Do not use unless | |
* you absolutely have to!</strong> | |
* <p> | |
* {@inheritDoc } | |
*/ | |
public int indexOfId(Object itemId) { | |
/* | |
* This is intentionally an ugly implementation! This method should not |
This file contains hidden or 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
# LOL!!1 | |
alias wtf='dmesg' | |
alias onoz='cat /var/log/errors.log' | |
alias rtfm='man' | |
alias visible='echo' | |
alias invisible='cat' | |
alias moar='more' |
This file contains hidden or 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
1) Download XMLLint for Windows here: | |
https://code.google.com/p/xmllint/downloads/list | |
2) Choose the xmllint-1.0.exe version and save somewhere in your Windows path (such as your user path). | |
3) Rename the file to: xmllint.exe (remove the -1.0) | |
4) Open Sublime Text 2 | |
5) Click Preferences -> Browse Packages (opens up your Packages folder in Windows Explorer). |
This file contains hidden or 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
.importonce | |
/* | |
Character memory | |
$D018 = %xxxx000x -> charmem is at $0000 | |
$D018 = %xxxx001x -> charmem is at $0800 | |
$D018 = %xxxx010x -> charmem is at $1000 | |
$D018 = %xxxx011x -> charmem is at $1800 | |
$D018 = %xxxx100x -> charmem is at $2000 | |
$D018 = %xxxx101x -> charmem is at $2800 |
This file contains hidden or 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
copy_screen_left: | |
:BeginIRQ() | |
ldx #0 | |
lda SCR_X_POS | |
beq !loop0+ | |
cmp #1 | |
beq !loop1+ | |
cmp #2 |
This file contains hidden or 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
// The Game | |
var game = { | |
'onload': function () { | |
// Initialize video | |
if (!me.video.init("screen", 640, 480, true, 'auto')) { | |
alert("Your browser does not support HTML5 canvas."); | |
return; | |
} |