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
\documentclass[12pt,a4paper,twoside,openright]{report} | |
%% Scope references to the chapter level. This works by redefining | |
%% the \label and \ref commands so that all references have their | |
%% current chapter number (\thechapter) prepended to them, both at | |
%% label and reference time. This prevents the referencing of things | |
%% outside the chapter. | |
%% | |
%% Refer to https://en.wikibooks.org/wiki/TeX/let for details on \let | |
%% and \renewcommand. |
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
// build with: | |
// gcc -Wall -g -O2 -c test.c -o test.o | |
// gcc -Wall -g -O2 -o test test.o | |
#include <stdint.h> | |
#include <stdio.h> | |
#include <unistd.h> | |
#include <fcntl.h> | |
#include <sys/mman.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
package Foo; | |
public class Foo | |
{ | |
public static void say (String what) | |
{ | |
System.out.println (what); | |
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
#include <stdio.h> | |
#include <asdkWrapper.h> | |
#include <Windows.h> | |
// cl /I "C:\Programs Files\Alpao\SDK\Include" /c dm-test.c | |
// cl dm-test.obj "C:\Program Files\Alpao\SDK\Lib\x86\ASDK.lib" | |
// dm-test.exe | |
int |
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
// ==UserScript== | |
// @name Stig's Facebook Homefeed Cleanr | |
// @namespace dk.rockland.userscript.facebook.cleanr | |
// @description Cleaning up the homefeed on Facebook. Removes Suggested Posts and Sponsored content from the homefeed. | |
// @match *://*.facebook.com/* | |
// @version 2016.09.07.1 | |
// @author Stig Nygaard, http://www.rockland.dk | |
// @homepageURL http://www.rockland.dk/userscript/facebook/cleanr/ | |
// @supportURL http://www.rockland.dk/userscript/facebook/cleanr/ | |
// @grant GM_getValue |
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
# shapedBtnDemo.py Ilan Davis June 2016, based on tutorial on the web. | |
# Icons made on iDraw (Graphic.app) on mac (in VSG format), saves as .png approx. 10%, 100pixes high. | |
######################################################################## | |
import wx | |
from wx.lib.agw.shapedbutton import SButton, SBitmapButton | |
from wx.lib.agw.shapedbutton import SBitmapToggleButton, SBitmapTextToggleButton | |
class MyForm(wx.Frame): | |
#---------------------------------------------------------------------- | |
def __init__(self): |
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
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
import sys | |
## namespace organization changed in PyQt5 but the class name was kept. | |
## importing this way makes it easier to change to PyQt5 later | |
from PyQt4.QtGui import (QMainWindow, QApplication, QDockWidget, QWidget, | |
QGridLayout, QSlider) | |
from PyQt4.QtCore import Qt |