Skip to content

Instantly share code, notes, and snippets.

View Benehiko's full-sized avatar
🏡

Alano Terblanche Benehiko

🏡
View GitHub Profile
@Benehiko
Benehiko / start-shotcut.sh
Created February 18, 2018 13:04
Shotcut video editor small Text UI Bug Fix
#!/bin/sh
#Add this file to Shotcut.app folder
QT_AUTO_SCREEN_SCALE_FACTOR=0 ./shotcut
@Benehiko
Benehiko / Windows10_virt-manager.xml
Created February 18, 2018 13:17
My Windows10 Virt-manager XML dump
<domain type='kvm' id='2'>
<name>windows</name>
<uuid>c4fb436e-3a76-4975-960f-dfb50e6d915b</uuid>
<memory unit='KiB'>8388608</memory>
<currentMemory unit='KiB'>8388608</currentMemory>
<vcpu placement='static'>8</vcpu>
<cputune>
<vcpupin vcpu='0' cpuset='2'/>
<vcpupin vcpu='1' cpuset='6'/>
<vcpupin vcpu='2' cpuset='3'/>
@Benehiko
Benehiko / tesseract-ocr-autobuild.sh
Created March 14, 2018 17:14
Tesseract auto build tool
#!/bin/sh
#This script is just for the python tesseract-ocr wrapper
#First install all pre-requisits
sudo apt-get install g++ # or clang++ (presumably)
sudo apt-get install autoconf automake libtool
sudo apt-get install autoconf-archive
sudo apt-get install pkg-config
sudo apt-get install libpng-dev
sudo apt-get install libjpeg8-dev
@Benehiko
Benehiko / clone-branch.sh
Created March 15, 2018 15:38
Clone branch bash script
#!/bin/bash
#Simple script to pull compiled jar and lib
echo "Enter github repository URL"
read $github
echo "Enter branch to clone"
read $branch
git clone -b $branch --single-branch $github
echo "Fetched compiled jar and lib"
@Benehiko
Benehiko / build.xml
Created April 4, 2018 23:54
Compile dependencies into a fat jar
<target name="package-for-store" depends="jar">
<property name="store.jar.name" value="myProject"/> <!--CHANGE VALUE TO PROJECT NAME-->
<property name="store.dir" value="store"/>
<property name="store.jar" value="${store.dir}/${store.jar.name}.jar"/>
<echo message="Packaging ${application.title} into a single JAR at ${store.jar}"/>
<delete dir="${store.dir}"/>
<mkdir dir="${store.dir}"/>
<jar destfile="${store.dir}/temp_final.jar" filesetmanifest="skip">
<zipgroupfileset dir="dist" includes="*.jar"/>
@Benehiko
Benehiko / 15000691526464720.txt
Created July 25, 2018 22:08
Pdf to text with Tesseract and ImageMagick
Page 1
Tencent &t
For Immediate Release
TENCENT ANNOUNCES 2018 FIRST QUARTER RESULTS
Hong Kong, May 16, 2018 — Tencent Holdings Limited (“Tencent” or the “Company”, 00700.HK), a leading provider
of Internet value added services in China, today announced the unaudited consolidated results for the first quarter
of 2018 (“1Q2018”).
Tencent il RECONCILIATIONS OF IFRS TO NON-GAAP RESULTS Adjustments RMB in mi/”?fi, repoftid Share-based Net (gains)/losses from Amortisation of Impa.lir.ment Non-GAAP unless specified compensation (a) investee companies (b) intangible assets (c) provision (d) Unaudited three months ended March 31, 2018 Operating profit 30,692 1,632 (7,788) 100 636 25,272 Profit for the period 23,973 1,682 (7,765) 531 709 19,130 Profit attributable to equity holders 23,290 1,585 (7,766) 495 709 18,313 Operating margin 42% 34% Net margin 33% 26% Unaudited three months ended December 31, 2017 Operating profit 25,724 1,874 (6,281) 112 424 21,853 Profit for the period 21,622 2,146 (6,229) 474 358 18,371 Profit attributable to equity holders 20,797 2,084 (6,189) 442 320 17,454 Operating margin 39% 33% Net margin 33% 28% Unaudited three months ended March 31, 2017 Operating profit 19,272 1,339 (2,747) 153 503 18,520 Profit for the period 14,548 1,530 (2,717) 500 511 14,372 Profit attributable to equity holders 14,
1 2 - - - - 1 2
p¼ p¼ p¼ p¼ p¼ p¼ -
-
@Benehiko
Benehiko / Expected-Output.txt
Created July 28, 2018 21:20
FIT2095-Lab1-Week2
2
[ 10, 20 ]
[ 20, 33 ]
true
false
@Benehiko
Benehiko / The Technical Interview Cheat Sheet.md
Created July 30, 2018 06:51 — forked from tsiege/The Technical Interview Cheat Sheet.md
This is my technical interview cheat sheet. Feel free to fork it or do whatever you want with it. PLEASE let me know if there are any errors or if anything crucial is missing. I will add more links soon.

Studying for a Tech Interview Sucks, so Here's a Cheat Sheet to Help

This list is meant to be a both a quick guide and reference for further research into these topics. It's basically a summary of that comp sci course you never took or forgot about, so there's no way it can cover everything in depth. It also will be available as a gist on Github for everyone to edit and add to.

Data Structure Basics

###Array ####Definition:

  • Stores data elements based on an sequential, most commonly 0 based, index.
  • Based on tuples from set theory.