Skip to content

Instantly share code, notes, and snippets.

View bosslee's full-sized avatar

Bosslee bosslee

  • Singapore
View GitHub Profile
@digitalasia
digitalasia / gist:8415949
Created January 14, 2014 09:57
iads and admobs
#pragma mark iADs and Admob
-(void) addAdMob
{
bannerView_ = [[GADBannerView alloc] initWithAdSize:kGADAdSizeBanner];
// Specify the ad's "unit identifier". This is your AdMob Publisher ID.
bannerView_.adUnitID = @"";
// Let the runtime know which UIViewController to restore after taking
@technobly
technobly / SparkPWM.cpp
Created January 8, 2014 08:13
SPARK CORE CUSTOM PWM FREQUENCY EXAMPLE Define your own frequency! PWM Glitch issue fixed!!
//-----------------------------------------------
// SPARK CORE CUSTOM PWM FREQUENCY EXAMPLE
//===============================================
// Define your own frequency below!
// PWM Glitch issue fixed, only sets up PWM once,
// ... thereafter sets duty cycle.
// This allows true 0 - 100% PWM.
// Copy this into a new application at:
// https://www.spark.io/build and go nuts!
//-----------------------------------------------