Skip to content

Instantly share code, notes, and snippets.

View zaki's full-sized avatar

Dezső Zoltán zaki

View GitHub Profile
@zaki
zaki / Startup.cs
Created October 7, 2014 06:50
Unity helper - Jump to title scene on start
using UnityEngine;
public class Startup : MonoBehaviour
{
private GameObject game = null;
[SerializeField]
private string startScene = "Title";
public void Awake()
{
@zaki
zaki / keybase.md
Created September 23, 2014 09:46
keybase.md

Keybase proof

I hereby claim:

  • I am zaki on github.
  • I am zaki (https://keybase.io/zaki) on keybase.
  • I have a public key whose fingerprint is 24DF 308C 6D24 C5F2 4EF6 A5F1 C06E C0DE 915F 3569

To claim this, I am signing this object:

@zaki
zaki / get_ranks.rb
Created May 29, 2014 11:27
App store rankings for Dashing
#encoding: utf-8
# Disclaimer:
# This is a quick hack to display ios app store rankings. It works for me.
# On your machine for all I know it could delete your hard drive, freeze your city's power grid,
# start WWIII, or even lock Australian people out of their iPhones, so use with caution.
require 'time'
require 'json'
# see genre codes here: https://www.apple.com/itunes/affiliates/resources/documentation/genre-mapping.html
# main country codes (sf=)
@zaki
zaki / .zakirc
Created April 14, 2014 02:38
Some aliases
alias st='stree'
alias rpc='rake rpc'
alias remas='rake master:copy && rake master:all'
alias rest='remig test && s'
alias gcozm='g checkout zaki-master'
alias gpzm='g push zaki zaki-master:master'
alias grhom='g reset --hard origin/master'
@zaki
zaki / Gemfile
Created March 13, 2014 08:45
Checking if 艦コレ is finally open... (it's probably not anyway, but whatever)
source "https://rubygems.org"
gem "terminal-notifier"
@zaki
zaki / shinjinjoshi-ec.rb
Created December 6, 2013 03:57
新人女子の書いたコードを直すだけの簡単なお仕事です!
# https://paiza.jp/poh/ec-campaign
n, d = STDIN.gets.split(/ /).map(&:to_i)
products = []
1.upto(n) do |i|
products << STDIN.gets.to_i
end
campaigns = []
@zaki
zaki / migration-1.rb
Created October 18, 2013 09:41
Cross-migration dependency
class Migration1 < ActiveRecord::Migration
def change
add_column :models, :test_1, :integer
Model.update_first
end
end
@zaki
zaki / Gemfile
Last active December 21, 2015 12:28
Mayday - Delete old TestFlight builds
source "https://rubygems.org"
gem "mechanize"
@zaki
zaki / 81-C# Script-NewBehaviourScript.cs.txt
Last active December 18, 2015 14:09
Unity C# Template UTF8-BOM
using UnityEngine;
using System.Collections;
public class #SCRIPTNAME# : MonoBehaviour
{
void Awake()
{
}
}
@zaki
zaki / mine_prs.rb
Created May 22, 2013 11:09
pull request stats
require 'json'
require 'date'
# SETTINGS
PAGE = 1
PER_PAGE = 10
AUTH = "" # basic authentication info
REPO = "" # eg zaki/dotfiles
class PR