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
save_button.addEventListener("click", function() { | |
xz.compress(serializeDB(), function(compressed) { | |
saveAs(compressed, "db.xz"); | |
}); | |
}); |
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
#!/bin/bash | |
# The author of the original script is unknown to me. The first entry I can | |
# find was posted at 2010-03-21 09:50:09 on Arch Linux Forums (doesn't mean the | |
# poster is the author at all): | |
# | |
# https://bbs.archlinux.org/viewtopic.php?pid=728932#p728932 | |
# | |
# I, Yu-Jie Lin, made a few changes and additions: | |
# | |
# -p, -R, and -C |
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 <ctype.h> | |
#include <stdio.h> | |
#include <stdlib.h> | |
struct node; | |
struct edge; | |
struct node { | |
char *name; | |
struct edge *edges; |
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 <stdio.h> | |
#include <string.h> | |
#include <stdlib.h> | |
#include <sys/types.h> | |
#include <sys/socket.h> | |
#include <netdb.h> | |
#include <arpa/inet.h> | |
#include <netinet/in.h> | |
int main (int argc, char *argv[]) { |
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
Which of the following are continuous functions? (Select all that apply.) | |
The temperature at a specific location as a function of time. | |
The temperature at a specific time as a function of the distance due west from New York City. | |
The altitude above sea level as a function of the distance due west from New York City. | |
The cost of a taxi ride as a function of the distance traveled. | |
The current in the circuit for the lights in a room as a function of time. | |
None of these. |
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
/* match: search for regexp anywhere in text */ | |
int match(char *regexp, char *text) | |
{ | |
if (regexp[0] == '^') | |
return matchhere(regexp+1, text); | |
do { /* must look even if string is empty */ | |
if (matchhere(regexp, text)) | |
return 1; | |
} while (*text++ != '\0'); | |
return 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
/completion -auto '-sun' ☀ | |
/completion -auto '-cloud' ☁ | |
/completion -auto '-umbrella' ☂ | |
/completion -auto '-snowman' ☃ | |
/completion -auto '-comet' ☄ | |
/completion -auto '-star' ★ | |
/completion -auto '-telephone' ☎ | |
/completion -auto '-box' ☐ | |
/completion -auto '-boxcheck' ☑ | |
/completion -auto '-cup' ☕ |
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
function UndoItem (perform, data) { | |
this.perform = perform; | |
this.data = data; | |
} | |
/** | |
* UndoStack: | |
* Easy undo-redo in JavaScript. | |
**/ |
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 <stdio.h> | |
#include <stdlib.h> | |
#include <stdint.h> | |
#include <inttypes.h> | |
int main(int argc, char* argv[]) { | |
int width, height; | |
unsigned char data[8]; | |
FILE *file; |
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
/msg ChanServ FLAGS #oftn sephr chair | |
/msg ChanServ FLAGS #oftn eboyjr vice-chair | |
/msg ChanServ FLAGS #oftn cloudhead board-member | |
/msg ChanServ FLAGS #oftn devyn board-member | |
/msg ChanServ FLAGS #oftn gkatsev board-member | |
/msg ChanServ FLAGS #oftn GothAlice board-member | |
/msg ChanServ FLAGS #oftn inimino board-member | |
/msg ChanServ FLAGS #oftn yrashk board-member | |
/msg ChanServ FLAGS #oftn *!*@freenode/staff/* freenode-staff | |
/msg ChanServ FLAGS #oftn oftn-bot bot |