Skip to content

Instantly share code, notes, and snippets.

View lamprosg's full-sized avatar

Lampros Giampouras lamprosg

  • Athens, Greece
View GitHub Profile
@lamprosg
lamprosg / cell.m
Created March 11, 2014 10:16
(iOS) swippable uitableviewcell with buttons under
// - SWTableViewCell
//https://github.com/CEWendel/SWTableViewCell
@lamprosg
lamprosg / couchbase-lite.txt
Last active August 29, 2015 13:58
Couchbase list (iOS - Android)
Documentation
http://developer.couchbase.com/mobile/develop/guides/couchbase-lite/native-api/manager/index.html
@lamprosg
lamprosg / speech_recognition
Last active August 29, 2015 13:58
(iOS) Speech
# iOS7 Day-by-Day: Day 4
## Speech Synthesis with AVSpeechSynthesizer
### Introduction
Include AVFoundation framework to project
#import <AVFoundation/AVFoundation.h>
iOS has had speech synthesis as part of siri since iOS 5, but it was never
@lamprosg
lamprosg / gist:10366568
Last active August 29, 2015 13:58
(iOS) Awesome libraries
Collection of awesome libraries
http://code4app.net/
Javascript native code
http://impactjs.com/ejecta
iOS/OSX bridge for sending messages between Obj-C and JavaScript
https://github.com/marcuswestin/WebViewJavascriptBridge
@lamprosg
lamprosg / pulltorefresh
Created April 11, 2014 12:46
(Android) Pull to refresh
https://github.com/chrisbanes/Android-PullToRefresh
@lamprosg
lamprosg / (Android) Awesome libraries
Created April 30, 2014 09:04
(Android) Awesome libraries
http://a.code4app.com/category?sort=1
@lamprosg
lamprosg / IAP
Created May 6, 2014 10:05
(Android) In-app purchasing
Official:
http://developer.android.com/google/play/billing/billing_integrate.html
Easy to use library:
https://github.com/anjlab/android-inapp-billing-v3
@lamprosg
lamprosg / README
Created May 14, 2014 14:16
(iOS) Tutorial: Provision Your App to Run on a Device
http://www.brianjcoleman.com/tutorial-provision-your-app-to-run-on-a-device/
@lamprosg
lamprosg / captureViewAsUIImage.m
Created October 1, 2014 08:19
(iOS) Capture a UIView as a UIImage
// capture the contents of the view in the rect specified
- (UIImage*)captureView:(UIView*)view rect:(CGRect)rect {
if (rect.size.width == 0 || rect.size.height == 0)
rect = view.bounds;
UIGraphicsBeginImageContext(view.bounds.size);
CGContextClipToRect(UIGraphicsGetCurrentContext(), rect);
[view.layer renderInContext:UIGraphicsGetCurrentContext()];
UIImage *anImage = UIGraphicsGetImageFromCurrentImageContext();
UIGraphicsEndImageContext();
@lamprosg
lamprosg / objects.js
Last active August 29, 2015 14:21
(Javascript) - Creating objects with inheritance
function Employee() {
this.name = "";
this.dept = "general";
}
function WorkerBee() {
Employee.call(this);
this.projects = [];