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 | |
set -e | |
if [[ -z "${FFRUST_VC_PATH}" ]]; then | |
if [[ -n "${FFRUST_RECURSING}" ]]; then | |
echo "Something went terribly wrong with our MVSC/msys2 magic" | |
exit 1 | |
fi |
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
#import <Foundation/Foundation.h> | |
#import <CoreVideo/CoreVideo.h> | |
#import <AppKit/AppKit.h> | |
BOOL canRecordScreen() | |
{ | |
if (@available(macOS 10.15, *)) { | |
CFArrayRef windowList = CGWindowListCopyWindowInfo(kCGWindowListOptionOnScreenOnly, kCGNullWindowID); | |
NSUInteger numberOfWindows = CFArrayGetCount(windowList); | |
NSUInteger numberOfWindowsWithName = 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
package main | |
import ( | |
"github.com/kardianos/service" | |
"log" | |
"flag" | |
) | |
type Service struct {} |
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 | |
write_json(int wfd, Document &doc) { | |
auto &al = doc.GetAllocator(); | |
GenericStringBuffer<UTF8<>, Document::AllocatorType> sb(&al); | |
PrettyWriter<GenericStringBuffer<UTF8<>, Document::AllocatorType>, UTF8<>, UTF8<>, Document::AllocatorType > sbwr(sb, &al); | |
doc.Accept(sbwr); | |
return strndup(sb.GetString(), sb.GetSize()); | |
uint32_t size = sb.GetSize(); | |
assert(write(wfd, &size, sizeof(size)) == sizeof(size)); |
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
/* | |
============================================================================ | |
Name : libevent_sample.c | |
Author : killerg | |
Version : | |
Copyright : Your copyright notice | |
Description : Hello World in C, Ansi-style | |
============================================================================ | |
*/ |