System directories
| Method | Result |
|---|---|
| Environment.getDataDirectory() | /data |
| Environment.getDownloadCacheDirectory() | /cache |
| Environment.getRootDirectory() | /system |
External storage directories
System directories
| Method | Result |
|---|---|
| Environment.getDataDirectory() | /data |
| Environment.getDownloadCacheDirectory() | /cache |
| Environment.getRootDirectory() | /system |
External storage directories
| import com.sun.tools.attach.VirtualMachine; | |
| import com.sun.tools.attach.VirtualMachineDescriptor; | |
| import java.util.List; | |
| public class ListVM{ | |
| public static void main(String[] args){ | |
| List<VirtualMachineDescriptor> vmList = VirtualMachine.list(); | |
| for(VirtualMachineDescriptor vm : vmList){ | |
| System.out.println("name: " + vm.displayName() + " id :" + vm.id()); | |
| try{ |
| /* | |
| * Copyright 2012 David Cesarino de Sousa | |
| * | |
| * Licensed 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 | |
| * | |
| * http://www.apache.org/licenses/LICENSE-2.0 | |
| * | |
| * Unless required by applicable law or agreed to in writing, software |
| .leaflet-div-icon { | |
| background: transparent; | |
| border: none; | |
| } | |
| .leaflet-marker-icon .number{ | |
| position: relative; | |
| top: -37px; | |
| font-size: 12px; | |
| width: 25px; |
| /* | |
| L.EditableCircleMarker is a marker with a radius | |
| The marker can be moved and the radius can be changed | |
| */ | |
| L.EditableCircleMarker = L.Class.extend({ | |
| includes: L.Mixin.Events, | |
| options: { | |
| weight: 1, |
| /* | |
| gcc -Wall -pedantic -std=c99 -O2 -o timegm timegm.c | |
| Test manual epoch calculation with tm_yday vs TZ+mktime. | |
| On Linux, gcc 4.4.7, the manual method is ~5x faster. | |
| Usage: | |
| ./timegm | |
| <ctrl-C> to quit |
An implementation of http://www.google.com/design/spec/components/pickers.html in AngularJS and some bootstrap just for helper classes (just the button classes).
Work in progress.
create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "[email protected]"
| import spray.json._ | |
| import reactivemongo.bson._ | |
| import reactivemongo.bson.handlers.{ BSONReader, BSONWriter, RawBSONWriter } | |
| import scala.util.{ Try, Success, Failure } | |
| import org.apache.commons.codec.binary.Hex | |
| import org.joda.time.format.ISODateTimeFormat | |
| import org.joda.time.{ DateTime, DateTimeZone } | |
| import java.nio.ByteBuffer | |
| import org.jboss.netty.buffer.ChannelBuffers |