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
File folder = new File(Environment.getExternalStorageDirectory() + | |
File.separator + "TollCulator"); | |
boolean success = true; | |
if (!folder.exists()) { | |
success = folder.mkdirs(); | |
} | |
if (success) { | |
// Do something on success | |
} else { | |
// Do something else on failure |
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
void main() { | |
var arr = [10,9,8,3,2,1,0]; | |
print(arr); | |
arr.sort((a,b)=>a-b); | |
print(arr); | |
} |
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
sudo apt-get install mysql-server mysql-client apache2 php5 libapache2-mod-php5 php5-mysql php5-curl php5-gd php5-intl php-pear php5-imagick php5-imap php5-mcrypt php5-memcache php5-ming php5-ps php5-pspell php5-recode php5-snmp php5-sqlite php5-tidy php5-xmlrpc php5-xsl |
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 'dart:html'; | |
void main() { | |
querySelectorAll("input:not([value]),input[value='']").forEach((Element e)=>e.classes.add("empty")); | |
querySelectorAll("input").forEach((InputElement e){ | |
e | |
..onInput.listen((ev)=>changeClasss(e)) | |
..onKeyUp.listen((ev)=>changeClasss(e)); | |
}); | |
} |
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
$fields = "XML=" . urlencode($xmlString); | |
// in this example, POST request was made using PHP's CURL | |
$ch = curl_init(); | |
curl_setopt($ch, CURLOPT_URL, $postUrl); | |
curl_setopt($ch, CURLOPT_POST, 1); | |
curl_setopt($ch, CURLOPT_POSTFIELDS, $fields); | |
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); | |
$response = curl_exec($ch); | |
curl_close($ch); |
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
void main() { | |
final mapOptions = new MapOptions() | |
..zoom = 15 | |
..center = new LatLng(19.44059, -99.17000) | |
..mapTypeId = MapTypeId.ROADMAP; | |
final map = new GMap(query("#map-canvas"), mapOptions); | |
var circleOptions = new CircleOptions() | |
..strokeColor = "#006600" |
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
[INFO] logfile = /Users/onlyangel/Dropbox/proyectos/repositorios/Arqui/Aqrui/build.log | |
[DEBUG] /Library/Application Support/Titanium/mobilesdk/osx/3.0.2.GA/android/builder.py install Aqrui /SDKs/android-sdk /Users/onlyangel/Dropbox/proyectos/repositorios/Arqui/Aqrui com.onlyangel.lds.arqui 2 | |
[DEBUG] detected module analytics, path = /Library/Application Support/Titanium/mobilesdk/osx/3.0.2.GA/android/modules/titanium-analytics.jar | |
[DEBUG] detected module android, path = /Library/Application Support/Titanium/mobilesdk/osx/3.0.2.GA/android/modules/titanium-android.jar | |
[DEBUG] adding required library: jaxen-1.1.1.jar | |
[DEBUG] adding required library: ti-commons-codec-1.3.jar | |
[DEBUG] adding required library: kroll-common.jar | |
[DEBUG] adding required library: titanium.jar | |
[DEBUG] detected module app, path = /Library/Application Support/Titanium/mobilesdk/osx/3.0.2.GA/android/modules/titanium-app.jar | |
[DEBUG] detected module ui, path = /Library/Application Support/Titanium/mobilesdk/osx/3.0.2.GA/android/modules/tita |
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
<?xml version="1.0" encoding="utf-8"?> | |
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" | |
android:orientation="vertical" | |
android:layout_width="fill_parent" | |
android:layout_height="fill_parent" | |
> | |
<LinearLayout | |
android:orientation="horizontal" | |
android:layout_width="fill_parent" | |
android:layout_height="wrap_content" |
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 main | |
import ( | |
"fmt" | |
"net/http" | |
) | |
type Hello struct{} | |
func (h Hello) ServeHTTP( |
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.onlyangel.libs; | |
import java.io.IOException; | |
import java.io.InputStream; | |
import java.net.MalformedURLException; | |
import java.util.HashMap; | |
import java.util.Map; | |
import org.apache.http.HttpResponse; | |
import org.apache.http.client.methods.HttpGet; |
NewerOlder