Skip to content

Instantly share code, notes, and snippets.

View richardjrossiii's full-sized avatar

Richard Ross richardjrossiii

  • Facebook
  • Palo Alto, CA
View GitHub Profile
@richardjrossiii
richardjrossiii / analysis.txt
Last active February 4, 2025 02:41
balancing double results
Contract: 4 spades by South
N/S score: 650
N/S score defending 1C: -70
Tuple: 650, -70
S : AKQ2
H : Q63
D : AJ7
C : T96
S : J3 S : 987
@richardjrossiii
richardjrossiii / balancingx.tcl
Last active February 4, 2025 01:52
.\deal.exe -i balancingx.tcl 1000 > results.txt
source lib/score.tcl
# source lib/gib.tcl
source lib/parscore.tcl
holdingProc stopper {A K Q J T length} {
if {$A && $length >= 2} { return true }
if {$K && $length >= 2} { return true }
if {$Q && $J && $length >= 3} { return true }
#include <stdatomic.h>
#include <stdint.h>
#include <stdbool.h>
/*!
An atomic ARC reference. Here's how it works:
The lowest bit of the pointer (mask 0x1) is used as a tag for the pointer being stored.
if the tag bit is set, that means that one thread currently owns this pointer, and will release it if the value has
been concurrently updated.
@richardjrossiii
richardjrossiii / gist:32389f163325efa00c37
Created September 2, 2015 01:07
NSString methods implemented
_swiftInitWithString_NSString:
queryToDict
firstCharacter
pinyinStringFromPinyinWithToneNumber
stringByStrippingDiacritics
strokeStringFromNumberString
simplifiedChineseCompare:
traditionalChineseZhuyinCompare:
stringByAddingPercentEncodingWithAllowedCharacters:
precomposedStringWithCanonicalMapping