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 <CoreText/CoreText.h> | |
#define kOTFhorizontalHeaderTableRecord_tag htonl((int32_t)('hhea')) | |
typedef struct otfTableRecordStruct | |
{ | |
int32_t tag; | |
int32_t checksum; | |
int32_t offset; | |
int32_t length; |
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
// | |
// ViewController.m | |
// testDispatchBenchmark | |
// | |
// Created by Doron Adler on 7/11/14. | |
// | |
#import "ViewController.h" | |
#include <mach/mach.h> | |
#include <mach/mach_time.h> |
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
#!/bin/bash | |
# This script builds the iOS and Mac openSSL libraries with Bitcode enabled | |
# Download openssl http://www.openssl.org/source/ and place the tarball next to this script | |
# Credits: | |
# https://github.com/st3fan/ios-openssl | |
# https://github.com/x2on/OpenSSL-for-iPhone/blob/master/build-libssl.sh | |
# Peter Steinberger, PSPDFKit GmbH, @steipete. | |
# Doron Adler, GlideTalk, @Norod78 |
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 xcrun swift | |
// $ chmod +x dalekTalk.swift | |
// $ ./dalekTalk.swift | |
// Based upon https://gist.github.com/okket/e461e85ea8b414863648 | |
import Cocoa | |
import AVFoundation | |
import Foundation |
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
#!/bin/sh | |
# | |
# How to extract a list of Youtube links from a Facebook discussion thread and generate a playlist | |
# ------------------------------------------------------------------------------------------------ | |
# By Doron Adler, @Norod78 | |
# | |
# Open the relevant comment thread in Facebook by tapping on the time next to the privacy indicator | |
# Save the relevant comment thread locally as a single “HTML only” file, call it "noalp.htm" | |
# Open your bash command line terminal, cd to the folder where you saved noalp.htm and paste the following: |
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
exports | |
------- | |
export CUDA_HOME=/usr/local/cuda | |
export DYLD_LIBRARY_PATH=/Users/dadler/lib:/usr/local/cuda/lib:/usr/local/cuda/extras/CUPTI/lib | |
export LD_LIBRARY_PATH=$DYLD_LIBRARY_PATH | |
export PATH=$DYLD_LIBRARY_PATH:$PATH | |
bazel | |
----- | |
I used bazel 0.10.0 (installed from bazel-0.10.0-installer-darwin-x86_64.sh) |
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
# How to completely remove Xcode 10 | |
# Info taken from this thread: https://forums.developer.apple.com/thread/110227 | |
# Keywords: | |
# Uninstall, Remove, Wipe, Delete, Xcode, Xcode 10 | |
# Assuming everythig is installed in the default path |
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
/*===---- immintrin.h - Intel intrinsics -----------------------------------=== | |
* | |
* Permission is hereby granted, free of charge, to any person obtaining a copy | |
* of this software and associated documentation files (the "Software"), to deal | |
* in the Software without restriction, including without limitation the rights | |
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
* copies of the Software, and to permit persons to whom the Software is | |
* furnished to do so, subject to the following conditions: | |
* | |
* The above copyright notice and this permission notice shall be included in |
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
#Read xml in OpenSubtitles format, output text intended for training machine learning models | |
import sys | |
from os import path | |
import time | |
import xml.etree.ElementTree as ET | |
if len(sys.argv) != 2: | |
print("Usage: "+ str(sys.argv[0]) + " input.xml") | |
exit(-1) |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
OlderNewer