Skip to content

Instantly share code, notes, and snippets.

View MariusCiocanel's full-sized avatar

Marius Ciocanel MariusCiocanel

View GitHub Profile
@MariusCiocanel
MariusCiocanel / disable-xcode8-ios10-extra-console-logging.md
Last active May 24, 2019 15:27
Disable extra log output from the console in Xcode 8 and iOS 10
/*************
* colors.js *
*************
*
* You're almost at the exit. You just need to get past this
* color lock.
*
* Changing your environment is no longer enough. You must
* learn to change yourself. I've sent you a little something
* that should help with that.
/************************
* validationEngaged.js *
************************
*
* They're really on to us now! The validateLevel function
* has been activated to enforce constraints on what you can
* do. In this case, you're not allowed to remove any blocks.
*
* They're doing all they can to keep you here. But you
* can still outsmart them.
/********************
* theLongWayOut.js *
********************
*
* Well, it looks like they're on to us. The path isn't as
* clear as I thought it'd be. But no matter - four clever
* characters should be enough to erase all their tricks.
*/
function startLevel(map) {
/*****************
* cellBlockA.js *
*****************
*
* Good morning, Dr. Eval.
*
* It wasn't easy, but I've managed to get your computer down
* to you. This system might be unfamiliar, but the underlying
* code is still JavaScript. Just like we predicted.
*
@MariusCiocanel
MariusCiocanel / main.m
Created May 19, 2015 12:41
HackerRank Objective-C template
// Created by Marius Ciocanel on 19/05/2015.
#import <Foundation/Foundation.h>
@interface Solution : NSObject
+(int)algorithmThatReturnsOutputFrom:(id)inputData;
@end
#! /bin/bash
# build the environment
mkdir tessenv; cd tessenv
TROOT=`pwd`
mkdir $TROOT/stockfonts; mkdir $TROOT/build; mkdir $TROOT/build/eng
echo "Environment built"
# Get the stock english fonts from Google (old, but they work)
cd $TROOT/stockfonts
GET http://tesseract-ocr.googlecode.com/files/boxtiff-2.01.eng.tar.gz > boxtiff-2.01.eng.tar.gz

Keybase proof

I hereby claim:

  • I am mariusciocanel on github.
  • I am mariusciocanel (https://keybase.io/mariusciocanel) on keybase.
  • I have a public key whose fingerprint is C1B1 EA95 CE19 421B 7B54 019C 6682 08E6 093F B086

To claim this, I am signing this object:

# !/bin/bash
# Copyright (c) 2011 Float Mobile Learning
# http://www.floatlearning.com/
#
# Extended by Ronan O Ciosoig January 2012
#
# Extended by Patrick Blitz, April 2013
#
# Permission is hereby granted, free of charge, to any person obtaining
You'd have to add the Reachability code to your project http://developer.apple.com/library/ios/#samplecode/Reachability/Listings/Classes_Reachability_m.html#//apple_ref/doc/uid/DTS40007324-Classes_Reachability_m-DontLinkElementID_6
___________
#import "Reachability.h"
+(NSString*)serverBaseURL {
if ([Reachability reachabilityWithHostName:@"macbook.local"].currentReachabilityStatus != NotReachable) {
return @"macbook.local";