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
#!/usr/bin/python3 | |
import sys | |
from PyQt4 import QtGui | |
from PyQt4 import QtCore | |
from PyQt4 import QtScript | |
from PyQt4.QtScript import QScriptEngine, QScriptValue | |
def my_exit(context, eng): |
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
#!/usr/bin/env python3 | |
import sys | |
from PyQt4 import QtCore | |
from PyQt4.QtScript import QScriptEngine, QScriptValue | |
def my_exit(context, eng): | |
exit(0) |
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
#!/usr/bin/env python3 | |
import urllib.request | |
import sys | |
from PyQt4 import QtGui | |
from PyQt4 import QtCore | |
from PyQt4.QtScript import QScriptEngine, QScriptValue |
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
#!/usr/bin/env python3 | |
import sys | |
from collections import namedtuple | |
Point = namedtuple('Point', ['x', 'y']) | |
class Mapper: | |
def __init__(self, old_ul, old_lr, new_ul, new_lr): | |
self.old_ul = old_ul |
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
/* | |
readmp3.c | |
Copyright (c) 2012, Jeremiah LaRocco [email protected] | |
Permission to use, copy, modify, and/or distribute this software for any | |
purpose with or without fee is hereby granted, provided that the above | |
copyright notice and this permission notice appear in all copies. | |
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES |
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
#!/usr/bin/env python3 | |
import sys | |
import struct | |
import math | |
class Vertex: | |
def __init__(self, x,y,z): | |
self.val = [x,y,z] |
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
#!/usr/bin/env python3 | |
import sys | |
import array | |
import math | |
import random | |
import os.path | |
import win32com.client | |
def get_catia(): |
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
module Main (main) where | |
import System.Cmd | |
import Network.Socket | |
import System.Environment | |
import Network.HTTP.Conduit | |
import qualified Data.ByteString.Lazy.Char8 as C8 | |
main = do | |
let versionUrl = "http://commondatastorage.googleapis.com/chromium-browser-continuous/Win/LAST_CHANGE" |
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
-- Calculate the approximate number of days till Arapahoe Basin opens | |
with Ada.Text_Io; | |
use Ada.Text_Io; | |
with Ada.Calendar; | |
use Ada.Calendar; | |
procedure dts is | |
tod : Time := Clock; | |
OpeningDay : Time := Time_Of(Day=>25, | |
Month=>10, |
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
#include <iostream> | |
// A templated abstract base class indicating that all subclasses will have a "load" method, but the parameter type will vary | |
template <class T> class Loadable { | |
public: | |
virtual bool load(const T &ival)=0; | |
}; | |
// A subclass that's loadable from an integer | |
class SubOne : public Loadable<int> { |