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 <fcntl.h> | |
#include <sys/socket.h> | |
#include <sys/un.h> | |
int main (int argc, char const* argv[]) | |
{ | |
int fd = socket(AF_UNIX, SOCK_STREAM, 0); | |
if(fd != -1) | |
{ | |
char const* socket_path = "/tmp/test.socket"; |
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
:root { | |
--textColor: rgba(0, 0, 0, 1.00); | |
--textBackgroundColor: rgba(255, 255, 255, 1.00); | |
--selectedTextColor: rgba(0, 0, 0, 1.00); | |
--selectedTextBackgroundColor: rgba(179, 215, 255, 1.00); | |
--linkColor: rgba(0, 104, 218, 1.00); | |
--headerTextColor: rgba(0, 0, 0, 0.85); | |
--labelColor: rgba(0, 0, 0, 0.85); |
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
textColor | |
linkColor | |
textBackgroundColor | |
labelColor | |
secondaryLabelColor | |
tertiaryLabelColor | |
quaternaryLabelColor | |
systemBlueColor |
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
### Keybase proof | |
I hereby claim: | |
* I am sorbits on github. | |
* I am sorbits (https://keybase.io/sorbits) on keybase. | |
* I have a public key ASCRO9t0xfm4YjzZaIbm6yx5y2_lWRfwfKKiIsVCnDEKoAo | |
To claim this, I am signing this object: |
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 <sys/param.h> | |
#include <sys/mount.h> | |
#include <sys/ucred.h> | |
#include <string.h> | |
#include <vector> | |
#include <string> | |
std::vector<std::string> volumes () | |
{ | |
std::vector<std::string> res; |
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 <CoreServices/CoreServices.h> | |
int main (int argc, char const* argv[]) | |
{ | |
CFShow(LSCopyApplicationURLsForBundleIdentifier(CFSTR("com.macromates.TextMate"), nullptr)); | |
return 0; | |
} |
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/env ruby -wU | |
require 'erb' | |
require 'fileutils' | |
require 'shellwords' | |
# extension to String to extract colours into rgb array | |
class String | |
# hex to array | |
def h2a | |
if self.length == 4 |
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
std::string fontStyle; | |
if(plist::get_key_path(plist, "settings.fontStyle", fontStyle)) | |
{ | |
bool hasPlain = fontStyle.find("plain") != std::string::npos; | |
bool hasBold = fontStyle.find("bold") != std::string::npos; | |
bool hasItalic = fontStyle.find("italic") != std::string::npos; | |
bool hasUnderline = fontStyle.find("underline") != std::string::npos; | |
res.bold = hasBold ? bool_true : (hasPlain ? bool_false : bool_unset); | |
res.italic = hasItalic ? bool_true : (hasPlain ? bool_false : bool_unset); |
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/env ruby -wU | |
require 'erb' | |
require 'fileutils' | |
require 'shellwords' | |
# extension to String to extract colours into rgb array | |
class String | |
# hex to array | |
def h2a |
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
#if (__cplusplus && __cplusplus >= 201103L && (__has_extension(cxx_strong_enums) || __has_feature(objc_fixed_enum))) || (!__cplusplus && __has_feature(objc_fixed_enum)) | |
#warning "we are OK" | |
#endif | |
#import <CoreFoundation/CoreFoundation.h> | |
#import <MacTypes.h> | |
#import <stdio.h> | |
#import <stdint.h> | |
#import <math.h> | |
#import <pthread.h> |
NewerOlder