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 <windows.h> | |
int main() { | |
SendMessage(HWND_BROADCAST, WM_SYSCOMMAND, SC_MONITORPOWER, 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
#include <windows.h> | |
#include <stdio.h> | |
#include <stdlib.h> | |
int fix = FALSE; | |
DWORD WINAPI dine(LPVOID param); | |
typedef struct { | |
int id; |
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 <windows.h> | |
#include <stdio.h> | |
#include <stdlib.h> | |
int fix = FALSE; | |
DWORD WINAPI dine(LPVOID param); | |
typedef struct { | |
int id; |
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
#lang racket | |
(require compatibility/defmacro) | |
(define-macro (bin-search-macro name | |
quick-return-case | |
bounds-equal-case | |
middle-is-ok-case) | |
`(define (,name str v) | |
(define len (string-length str)) |
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
class Conf: | |
pass | |
xmpp = Conf() | |
tele = Conf() | |
xmpp.jid = "[email protected]" | |
xmpp.password = "xxxx" | |
xmpp.room = "[email protected]" | |
xmpp.listener_nick = "anonka" |
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
require 'nokogiri' | |
input_file_name = ARGV[0] || "./font.svg" | |
input_file = File.open input_file_name | |
doc = Nokogiri::XML input_file | |
input_file.close | |
font_face = doc.css("font-face")[0] | |
units_per_em = font_face["units-per-em"] |
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 java.io.*; | |
import java.util.ArrayList; | |
import java.util.Comparator; | |
class MalformedContactStringException extends Exception { | |
public MalformedContactStringException(String str) { | |
super(str); | |
} | |
} |
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
#lang racket | |
(require racket/generic) | |
(define (flip f) | |
(λ (x y) (f y x))) | |
(define-generics monad | |
(fmap f monad) | |
(join monad)) |