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
<!DOCTYPE html> | |
<html> | |
<head> | |
<script> | |
glyphs = [ | |
[], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], // padding | |
[0, 0, 0, 0, 0, 0, 0, 0], // , 32 | |
[8, 8, 8, 8, 8, 0, 8, 0], // !, 33 | |
[20, 20, 20, 0, 0, 0, 0, 0], // ", 34 |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<script> | |
function isBitOn(number, index) { | |
return Boolean(number & (1 << index)); | |
} | |
window.onload = function() { | |
var canvas = document.getElementById('canvas'); |
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
alias night="pmset displaysleepnow && osascript -e \"set volume output volume 34\"" |
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
using System; | |
using System.Collections.Generic; | |
public class Program | |
{ | |
enum eStat | |
{ | |
HPNow, | |
HPMax, |
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
using System; | |
using System.Collections; | |
using System.Collections.Generic; | |
class MainClass { | |
public static void PrintList<T>(List<T> l) | |
{ | |
for (int i = l.Count - 1; i >= 0 ; i--) |
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
# import the main window object (mw) from aqt | |
# from the anki tutorial: https://apps.ankiweb.net/docs/addons.html | |
from aqt import mw | |
# import the "show info" tool from utils.py | |
from aqt.utils import showInfo, getTag, tooltip | |
# import all of the Qt GUI library | |
from aqt.qt import * | |
from aqt.reviewer import Reviewer | |
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
using System.Collections; | |
using System.Collections.Generic; | |
using System; | |
using UnityEngine; | |
using UnityEditor; | |
public class ScriptableObjectInstanceHelper | |
{ | |
[MenuItem ("Assets/Create Instance", false, 0)] | |
private static void CreateInstance () |
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
# Quick Tagging is an anki2 addon for quickly adding tags while reviewing | |
# Copyright 2012 Cayenne Boyer | |
# | |
# This program is free software: you can redistribute it and/or modify | |
# it under the terms of the GNU General Public License as published by | |
# the Free Software Foundation, either version 3 of the License, or | |
# (at your option) any later version. | |
# | |
# This program is distributed in the hope that it will be useful, | |
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
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
Watch = {} | |
Watch.__index = Watch | |
function Watch:Create() | |
local this = | |
{ | |
key = {}, | |
keyRoot = | |
{ | |
id = "_G", | |
cursor = 1, |
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
#!/opt/local/bin/lua | |
-- | |
-- Simple parser | |
-- | |
if not arg[1] then | |
print "Need a filename as an argument." | |
return | |
end |
NewerOlder