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 lzma | |
import time | |
def benchmark_lzma_decompressor(compressed_data): | |
# Start the timer | |
start_time = time.time() | |
# Create an LZMADecompressor object | |
decompressor = lzma.LZMADecompressor() |
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 | |
set -e | |
ARCH=$(uname -m) | |
# install brew if required | |
if [[ $(command -v brew) == "" ]]; then | |
echo "Installing Homebrew" | |
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" | |
if [[ $SHELL == "/bin/zsh" ]]; then |
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
/** | |
* AliceOnboarding.service.ts | |
* | |
* This file was created based on the Alice Biometrics documentation found at: | |
* https://docs.alicebiometrics.com/onboarding/ | |
* and the full API Reference from: | |
* https://apis.alicebiometrics.com/onboarding/ui/#/ | |
* and the Python SDK code from: | |
* https://github.com/alice-biometrics/onboarding-python | |
* |
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
Verifying my Blockstack ID is secured with the address 1A6Aj7Z1sWsdHtrZDwrNZzk3GhVnh4Z3pp https://explorer.blockstack.org/address/1A6Aj7Z1sWsdHtrZDwrNZzk3GhVnh4Z3pp |
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
- (void)viewDidLoad | |
{ | |
[super viewDidLoad]; | |
self.webView = [[UIWebView alloc] initWithFrame:self.view.bounds]; | |
self.webView.autoresizingMask = UIViewAutoresizingFlexibleHeight | UIViewAutoresizingFlexibleWidth; | |
self.webView.delegate = self; | |
[self.view addSubview:self.webView]; | |
[self loadDisqusComments]; |
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 "UIFont+MNFonts.h" | |
#import <objc/runtime.h> | |
NSString *const FORegularFontName = @"Copperplate"; | |
NSString *const FOBoldFontName = @"Copperplate-Bold"; | |
NSString *const FOItalicFontName = @"Copperplate-Light"; | |
@implementation UIFont (MNFonts) |
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
// C# example | |
using UnityEditor; | |
using System.IO; | |
using System.Collections; | |
using UnityEngine; | |
using System.Collections.Generic; | |
class PerformBuild | |
{ | |
static string[] GetBuildScenes() |