Skip to content

Instantly share code, notes, and snippets.

View IndrekV's full-sized avatar
🏠
Working from home

Indrek Vändrik IndrekV

🏠
Working from home
View GitHub Profile
@idy
idy / re-sign-ipa.sh
Created December 9, 2014 06:56
Use codesign re-sign swift app
#!/bin/sh
# Usage: ./sign.sh INPUT.ipa OUTPUT PROVISION.mobileprovision IDENTITY_NAME ENTITLEMENTS
# Reading parameters
INPUT=$1
OUTPUT=$2.ipa
MOBILE_PROVISTION=$3
CER_NAME=$4
# ENTITLEMENTS=$5
@namjae
namjae / notifywindow.cpp
Last active January 23, 2016 18:28
Simple Notification Widget on Qt
/* -*- mode: c++; c-basic-offset: 4; indent-tabs-mode: nil; -*- */
/**
* @file notifywindow.cpp
* @author M.W.Park <manywaypark@gmail.com>
* @date Thu Nov 20 11:31:12 2014
*
* @brief
*
* @note tested on windows 8.1, Qt 5.3 for now.
*/
@KeyMaster-
KeyMaster- / IsoCamSetup
Created October 5, 2014 13:22
Isometric view in the luxe engine
//Rotate the camera such that z points up and x to the right
var o:Quaternion = new Quaternion().setFromEuler(new Vector().set_xyz(-90, 0, 0).radians());
//Rotate by Arctan(sin(45°)) (grabbed from wikipedia) around x, to get the top-down part
var q:Quaternion = new Quaternion().setFromEuler(new Vector().set_xyz(Math.atan(Math.sin(45 * Maths.DEG2RAD)), 0, 0));
//Rotate around z by -45° to get the side-on part
var p:Quaternion = new Quaternion().setFromEuler(new Vector().set_xyz(0, 0, -45).radians());
//Combine the rotations and apply to the camera
@LinusU
LinusU / README.md
Last active July 17, 2021 08:06 — forked from apla/icons_and_splash.js
Icons and Splash images for your Cordova project. (with iOS 7 support)

Usage

Install cordova into node_modules

npm install cordova

Add icons_and_splash.js

@codelance
codelance / NSImage+Rotate.mm
Created February 8, 2013 05:52
I felt this deserved a little more recognition so I am posting it on a public code medium. I was looking for a way to flip a NSImage vertically an horizontally. Thanks buddy @ http://itscoderslife.wordpress.com/2011/03/02/rotate-scale-flip-nsimageview/
- (void)flipImageVertically {
NSAffineTransform *flipper = [NSAffineTransform transform];
NSSize dimensions = self.size;
[self lockFocus];
[flipper scaleXBy:1.0 yBy:-1.0];
[flipper set];
[self drawAtPoint:NSMakePoint(0,-dimensions.height)
fromRect:NSMakeRect(0,0, dimensions.width, dimensions.height)
@aemkei
aemkei / LICENSE.txt
Last active June 4, 2024 07:51 — forked from 140bytes/LICENSE.txt
Binary Tetris - 140byt.es
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2011 YOUR_NAME_HERE <YOUR_URL_HERE>
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE