Skip to content

Instantly share code, notes, and snippets.

View andiradulescu's full-sized avatar

Andrei Radulescu andiradulescu

View GitHub Profile
import lzma
import time
def benchmark_lzma_decompressor(compressed_data):
# Start the timer
start_time = time.time()
# Create an LZMADecompressor object
decompressor = lzma.LZMADecompressor()
#!/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
/**
* 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
*
Verifying my Blockstack ID is secured with the address 1A6Aj7Z1sWsdHtrZDwrNZzk3GhVnh4Z3pp https://explorer.blockstack.org/address/1A6Aj7Z1sWsdHtrZDwrNZzk3GhVnh4Z3pp
- (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];
#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)
// C# example
using UnityEditor;
using System.IO;
using System.Collections;
using UnityEngine;
using System.Collections.Generic;
class PerformBuild
{
static string[] GetBuildScenes()