This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Use Gists to store code you would like to remember later on | |
| console.log(window); // log the "window" object to the console |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| -------------------------------------BEGIN-------------------------------------- | |
| Inspecting project: /Developer/apps/refnet-ios/RefNet.xcodeproj/project.pbxproj | |
| -------------------------------------------------------------------------------- | |
| Finding your project's sub-projects... | |
| Sub-project: {'path': 'CordovaLib/CordovaLib.xcodeproj', 'name': 'CordovaLib.xcodeproj', 'sourceTree': '<group>'} | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| addLocales: -> | |
| @$("#allLocales").empty() | |
| _that = @ | |
| _.each @locales_collection, (locale) -> | |
| _that.$("#allLocales").append("<option value='#{locale.get('id')}'>#{locale.get('name')}</option>") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| String orientation = getString(R.string.orientation); | |
| Log.i("Orientation String",orientation); | |
| if (orientation == "portrait") { | |
| Log.i("Orientation String","SHOULD LOCK TO PORTRAIT"); | |
| setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT); | |
| } else { | |
| Log.i("Orientation String","SHOULD LOCK TO LANDSCAPE"); | |
| setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var os = fs.existsSync(__dirname + '/../../AndroidManifest.xml') ? 'android' : 'ios'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package com.phonegap.plugins.twitter; | |
| import java.util.Arrays; | |
| import java.util.LinkedHashMap; | |
| import java.util.Map; | |
| import org.json.JSONArray; | |
| import org.json.JSONException; | |
| import android.content.ComponentName; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [self.btnCollect setTitle:@"EDIT DECK" forState:UIControlStateNormal]; | |
| [self.btnCollect addTarget:(DeckViewController *)self.parentDeckViewController action:@selector(addCardsToDeck:) forControlEvents:UIControlEventTouchUpInside]; |