Skip to content

Instantly share code, notes, and snippets.

View saumya's full-sized avatar

saumya saumya

View GitHub Profile
@saumya
saumya / MainViewController.m
Created March 21, 2014 09:43
Cordova(Phonegap) application, fixing the iOS 7 status bar
- (void)viewWillAppear:(BOOL)animated
{
// View defaults to full size. If you want to customize the view's size, or its subviews (e.g. webView),
// you can do so here.
//Original
//[super viewWillAppear:animated];
//Fix for Cordova on iOS 7
//Lower screen 20px on ios 7
@saumya
saumya / kii_servercode_deploy
Created April 18, 2014 11:19
deploying servercode to Kii Cloud platform. Note, this is only servercode deploy not with Hook.
node bin/kii-servercode.js deploy-file --file path/to/myServerCode.js --site us --app-id <AppID> --app-key <AppKey> --client-id <ClientID> --client-secret <ClientSecret>
//
var express = require('express');
var app = express();
app.all('*', function(req, res, next) {
res.header("Access-Control-Allow-Origin", "*");
res.header("Access-Control-Allow-Headers", "X-Requested-With");
next();
});
@saumya
saumya / ubuntuBoxSetupTricks
Last active April 26, 2017 06:45
Ubuntu setup and tricks
# Installation and some details
==================================================================================
If android is installed with Android Studio then the path to sdk is at
` ~/Android/sdk/ `
==================================================================================
## NodeJS :