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 MyActivity extends Activity { | |
@Override | |
protected void onCreate(Bundle savedInstanceState) { | |
super.onCreate(savedInstanceState); | |
ArrayAdapter<String> adapter = new ArrayAdapter<String>(this, android.R.layout.simple_list_item_1, android.R.id.text1) { | |
@Override | |
public int getCount() { |
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
/** | |
* A simple arithmetic language that consists of the following keywords | |
* | |
* reset | |
* reset x, creates a variable x if it doesnot exist and assigns 0 as its value | |
* increment | |
* increment x, increments a previously declared variable x, generates compiler warning if it doesnot have x already. | |
* loop | |
* loop x, loops the following statements until endloop x times, generates a compiler warning if x is not defined already. | |
* endloop |
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 MainActivity extends ActionBarActivity { | |
private ViewPager mViewPager; | |
@Override | |
protected void onCreate(Bundle savedInstanceState) { | |
super.onCreate(savedInstanceState); | |
final int[] mColors = new int[3]; | |
mColors[0] = Color.BLUE; |
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
cordova.define("org.apache.cordova.geolocation.Coordinates", function(require, exports, module) { /* | |
* | |
* Licensed to the Apache Software Foundation (ASF) under one | |
* or more contributor license agreements. See the NOTICE file | |
* distributed with this work for additional information | |
* regarding copyright ownership. The ASF licenses this file | |
* to you under the Apache License, Version 2.0 (the | |
* "License"); you may not use this file except in compliance | |
* with the License. You may obtain a copy of the License at | |
* |
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
<style> | |
ul.tabs > li::before { | |
content : ''; | |
} | |
@media (max-width: 600px) { | |
ul.tabs input[type=radio] { | |
position: absolute; | |
top: -9999px; |
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
<div id="facebook_info" style="border:5px solid blue;"> | |
</div> | |
<script type="text/javascript"> | |
function load_facebook_info(data) { | |
document.getElementById("facebook_info").innerHTML = data.likes + "<br/> Like this <br/>" + data.were_here_count + "<br/> were here <br/>" + data.talking_about_count + "<br/> talking about this"; | |
} | |
</script> | |
<script src="https://graph.facebook.com/SonomaChickenCoopCampbell?fields=likes,were_here_count,talking_about_count&callback=load_facebook_info"></script> |
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 android.app.Activity; | |
import android.os.Bundle; | |
import android.view.MotionEvent; | |
import android.view.View; | |
import android.widget.ArrayAdapter; | |
import android.widget.ListView; | |
import android.widget.RelativeLayout; | |
public class TouchOverlayDemo extends Activity { | |
@Override |
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 { EventData, Observable } from "data/observable"; | |
import { Page } from "ui/page"; | |
var dateConverter = { | |
toView: function (value, format) { | |
var result = format; | |
var day = value.getDate(); | |
result = result.replace("DD", day < 10 ? "0" + day : day); | |
var month = value.getMonth() + 1; | |
result = result.replace("MM", month < 10 ? "0" + month : month); |
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 <UIKit/UIKit.h> | |
@interface MyTableViewController : UITableViewController { | |
} | |
@end |
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
package com.webileapps.dateiconwidget; | |
import java.text.SimpleDateFormat; | |
import java.util.Date; | |
import android.annotation.SuppressLint; | |
import android.content.Context; | |
import android.content.res.Resources; | |
import android.graphics.Color; | |
import android.graphics.Typeface; |
OlderNewer