Skip to content

Instantly share code, notes, and snippets.

View lisaiceland's full-sized avatar
🏅
Innovate | Iterate

Lisaiceland DBA lisaiceland

🏅
Innovate | Iterate
View GitHub Profile
@lisaiceland
lisaiceland / tabs.service.ts
Created March 1, 2017 16:17 — forked from adamkearsley/tabs.service.ts
A service to hide and show tabs in Ionic 2
import {Injectable} from '@angular/core';
// Declare TabsService as a provider in app.module.ts
// Inject TabsService in your class: constructor(public tabs: TabsService){}
// Use the this.tabs.hide() or this.tabs.show() methods wherever you want
@Injectable()
export class TabsService {
constructor() {}
public hide() {
@lisaiceland
lisaiceland / DeviceUID.m
Created August 25, 2016 18:07 — forked from miguelcma/DeviceUID.m
iOS Unique Device ID that persists between app reinstalls
/* DeviceUID.h
#import <Foundation/Foundation.h>
@interface DeviceUID : NSObject
+ (NSString *)uid;
@end
*/
// Device.m
sudo killall VDCAssistant
@lisaiceland
lisaiceland / Piano.py
Last active November 1, 2015 11:56
Piano.py
# Piano
#
# A simple multi-touch piano.
from scene import *
import sound
from itertools import chain
class Key (object):
def __init__(self, frame):
@lisaiceland
lisaiceland / Calculator.py
Created October 31, 2015 04:41
Calculator.py
# coding: utf-8
# Calculator
from __future__ import division
import ui
import clipboard
from console import hud_alert
shows_result = False
@lisaiceland
lisaiceland / Image Warp.py
Created October 31, 2015 04:39
Image Warp.py
# Image Warp
#
# Demonstrates an interesting use of the image_quad function
# to distort an image based on touch.
from scene import *
from math import sqrt, sin, pi, floor
import Image
M = 16 # number of vert. and horiz. quads in the mesh (16*16=256)