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
diff --git a/SDL-1.2.14/src/video/x11/SDL_x11events.c b/SDL-1.2.14/src/video/x11/SDL_x11events.c | |
index da57528..d0ce0f3 100644 | |
--- a/SDL-1.2.14/src/video/x11/SDL_x11events.c | |
+++ b/SDL-1.2.14/src/video/x11/SDL_x11events.c | |
@@ -817,7 +817,7 @@ printf("MapNotify!\n"); | |
#ifdef DEBUG_XEVENTS | |
printf("ConfigureNotify! (resize: %dx%d)\n", xevent.xconfigure.width, xevent.xconfigure.height); | |
#endif | |
- if(SDL_Window == xevent.xconfigure.window) | |
+ if(WMwindow == xevent.xconfigure.window) |
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
grep -v '^#' playlist.m3u8 > tmp | |
mv tmp playlist.m3u8 | |
git add playlist.m3u8 |
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
StandardFirmata_2_2_forUNO_0_3 | |
pyfirmata | |
set baudrate 57600 in sketch & pyfirmata.py | |
set port name in util.py | |
>>> import pyfirmata | |
>>> from util import get_the_board | |
>>> board=get_the_board() | |
>>> board.firmata_version |
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> | |
#define foo "xxxx" | |
#define bar "yyyy" | |
const char * ggg = bar foo; | |
void main() | |
{ |
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
import sys | |
for i in sorted(sys.stdin.readlines()): | |
sys.stdout.write(i) | |
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
<?php | |
$fio = array(); | |
$a = fopen("dz-pohyby.cgi", "r"); | |
for($i=0;$i<10;$i++) | |
fgets($a); | |
while($b=fgets($a)) | |
$fio[] = explode(";", $b); | |
$fio=array_splice($fio,0,sizeof($fio)-2); | |
for($i=0;$i<sizeof($fio);$i++) |
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
<html><body><h1>It works!</h1> | |
<p>This is the default web page for this server.</p> | |
<p>The web server software is running but no content has been added, yet.</p> | |
<?php | |
$handle=opendir('/etc/apache2/conf.d'); | |
$it = array(); | |
while (false !== ($file = readdir($handle))) | |
{ |
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/perl -w | |
# | |
# mpdtube.pl | |
# version 0.2 | |
# author Johan Ask | |
# | |
# Script to download youtube clips, convert to mp3 and add to an mpd playlist. | |
# |
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
server = "server.themanaworld.org" | |
port = 6901 | |
account = "" | |
password = "" | |
character = 0#slot character is in, 0 for first, 1 for second, 2 for third | |
charactername = "" | |
master = "" #character bot will direct public chat to | |
sit = 0 # become inconspicuous | |
color_replacement_regex = '' #r'\1 ' to keep em |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple. | |
com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>IFCompilerOptions</key> | |
<dict> | |
<key>IFSettingNaturalInform</key> | |
<true/> | |
</dict> |
OlderNewer