PreferenceActivity support ActionBarCompat and PreferenceFragment.
This file contains 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
tampil = """{"data1":"Ini Data 1","data2":"Ini Data 2""" | |
class TestClass(): | |
def run(self): | |
tampil_class = """","data3":"Ini Data 3"}""" | |
return tampil_class | |
t = TestClass() | |
tampil_class = t.run() |
This file contains 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
// Tiled Layer | |
the_layer = new OpenLayers.Layer.WMS( | |
"My Layer", | |
"http://localhost:8080/geoserver/merapi/wms", | |
{ | |
layers: 'merapi:desa', | |
isBaseLayer: false, | |
tiled: true, | |
format: 'image/png', | |
tilesOrigin : map.maxExtent.left + ',' + map.maxExtent.bottom, |
This file contains 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
@Override | |
public boolean onCreateOptionsMenu(Menu menu) { | |
MenuInflater inflater = getMenuInflater(); | |
inflater.inflate(R.menu.menu_main, menu); | |
SearchManager searchManager = (SearchManager) getSystemService(Context.SEARCH_SERVICE); | |
MenuItem searchItem = menu.findItem(R.id.action_search); | |
ComponentName cn = new ComponentName(this, SearchableActivity.class); | |
SearchView searchView = (SearchView) searchItem.getActionView(); |
This file contains 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
public class AndroidLifeCycle extends Activity { | |
String tag = "AndroidLifeCycleEvents"; | |
@Override | |
public void onCreate(Bundle savedInstanceState) { | |
super.onCreate(savedInstanceState); | |
setContentView(R.layout.main); | |
Log.d(tag, "In the onCreate() event"); | |
} | |
public void onStart() |
Support onItemLongClick
What is happening:
DATE | COUNTER |
---|---|
2012-01-01 | 32 |
2012-01-02 | 28 |
2012-01-04 | 12 |
2012-01-05 | 23 |
As you can see, on 2012-01-03 dates there isn't any data. So the goal is to create a query (without procedure) to produce below result:
This file contains 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
import sys | |
import getopt | |
from github import Github | |
from colored import fg, bg, attr | |
LONGSDESC = """ | |
Usage: $python lsqrl.py sample.txt | |
content of file: | |
---------------- |
This file contains 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
(function (root, factory) | |
{ | |
'use strict'; | |
if (typeof define === 'function' && define.amd) { | |
// AMD. Register as an anonymous module. | |
define([], factory); | |
} else if ( typeof exports === 'object' ) { | |
// Node/CommonJS | |
module.exports = factory(); |
OlderNewer