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 <unistd.h> | |
| #define START_SIZE 64 | |
| char * shuffle(char * array, int seed, int index, int len); | |
| char * unshuffle(char * array, int seed, int index, int len); | |
| void swap(char * a, char * b); |
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 sh | |
| ## | |
| # This is script with usefull tips taken from: | |
| # https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
| # | |
| # install it: | |
| # curl -sL https://raw.github.com/gist/2108403/hack.sh | sh | |
| # |
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/python | |
| # This script solves encoded nonograms from site nonograms.net. | |
| # When you create a nonogram and click encode, you are given an url | |
| # with encoded nonogram (for instance http://nonograms.net?CxOuiPURF7Ii1ERa7u4AACuyNVVFqsi9VRa6uwAA). | |
| # To solve it, you must pass a string after ? as an argument (CxOuiPURF7Ii1ERa7u4AACuyNVVFqsi9VRa6uwAA). | |
| import base64 | |
| import sys |
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 <string.h> | |
| #include <ctype.h> | |
| #define to_index(a) (a - 97) | |
| #define to_char(a) (a + 97) | |
| int main(int argc, const char *argv[]) { | |
| char letters[26][2048]; |
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
| int point2d_nquad_of_rectangled_old(Point2D point, RectangleD rect) { | |
| int i; | |
| for (i = 0; i < 4; i++) { | |
| if (point2d_is_in_rectangled(point, rectangled_nquad(rect, i))) { | |
| return i; | |
| } | |
| } | |
| return -1; | |
| } |
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 temp files in one place | |
| (setq | |
| backup-by-copying t ; don't clobber symlinks | |
| backup-directory-alist | |
| '(("." . "~/.saves")) ; don't litter my fs tree | |
| delete-old-versions t | |
| kept-new-versions 6 | |
| kept-old-versions 2 | |
| version-control t) ; use versioned backups |
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
| CC = gcc | |
| CFLAGS = -O3 -Wall -std=gnu99 | |
| UNAME := $(shell uname) | |
| ifeq ($(UNAME), Linux) | |
| CFLAGS += -lm | |
| endif | |
| with_libpng: |
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
| <?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>author</key> | |
| <string>xcode</string> | |
| <key>name</key> | |
| <string>Low Key</string> | |
| <key>settings</key> | |
| <array> |
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
Show hidden characters
| { | |
| "color_scheme": "Packages/Color Scheme - Default/Low Key.tmTheme", | |
| "font_face": "Menlo Regular", | |
| "font_size": 11, | |
| "detect_slow_plugins": false, | |
| "ignored_packages": | |
| [ | |
| "Vintage", | |
| "Emmet" | |
| ], |
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
| specification LIST : noexit | |
| library NATURAL endlib | |
| library BOOLEAN endlib | |
| type LIST is NATURAL | |
| sorts | |
| LIST (*! implementedby LIST | |
| comparedby CMP_LIST | |
| iteratedby ENUM_FIRST_LIST and ENUM_NEXT_LIST |