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> | |
typedef struct { | |
float x, y; | |
} vec2; | |
float vec2_cross(vec2 a, vec2 b) { | |
return a.x * b.y - a.y * b.x; | |
} |
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
using System; | |
using System.Collections.Generic; | |
using System.IO; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
namespace remrawxmp | |
{ | |
class Program |
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 | |
RAWS=raws/*.NEF | |
for raw in $RAWS | |
do | |
echo -n "Checking $raw - " | |
rawb=$(basename $raw) | |
jpg="${rawb%%.*}.JPG" | |
if [ ! -f $jpg ]; | |
then |
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 PHILOSOPHERS [think, eat, req, rel] : noexit | |
library BOOLEAN endlib | |
library NATURAL endlib | |
behaviour | |
( | |
Philosopher[think, eat, req, rel](1) | |
||| | |
Philosopher[think, eat, req, rel](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
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 |
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
<?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
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
;; 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
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; | |
} |