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
/* | |
* An implementation of C11 stdatomic.h directly borrowed from FreeBSD | |
* (original copyright follows), with minor modifications for | |
* portability to other systems. Works for recent Clang (that | |
* implement the feature c_atomic) and GCC 4.7+; includes | |
* compatibility for GCC below 4.7 but I wouldn't recommend it. | |
* | |
* Caveats and limitations: | |
* - Only the ``_Atomic parentheses'' notation is implemented, while | |
* the ``_Atomic space'' one is not. |
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
// esempio di auto init per il server | |
// helpers.js | |
on('install',function(e){ | |
try{ | |
['beverages','food','orders'].forEach(function(c){ | |
_command({resource: 'collections', name: 'post', params: c}); | |
}); | |
} catch(e){ | |
return { |
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
if( BaasUser.current() == null ) { | |
startLoginScreen(); | |
return; | |
} |
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
Process: Xcode [469] | |
Path: /Applications/Xcode.app/Contents/MacOS/Xcode | |
Identifier: com.apple.dt.Xcode | |
Version: 4.4.1 (1488) | |
Build Info: IDEApplication-1488000000000000~2 | |
App Item ID: 497799835 | |
App External ID: 9950605 | |
Code Type: X86-64 (Native) | |
Parent Process: launchd [121] | |
User ID: 501 |
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"?> | |
<resources> | |
<style name="Theme.Trentino" parent="Theme.Sherlock.Light"> | |
<item name="actionBarStyle">@style/Widget.Trentino.ActionBar</item> | |
<item name="android:actionBarStyle">@style/Widget.Trentino.ActionBar</item> | |
<item name="actionBarItemBackground">@drawable/action_item_bg</item> | |
<item name="android:actionBarItemBackground">@drawable/action_item_bg</item> | |
<item name="android:windowContentOverlay">@null</item> | |
<item name="android:windowBackground">@drawable/base_bkg</item> | |
</style> |
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 sincro.safetrack.fragment; | |
import static sincro.safetrack.utility.MetodiStatici.equalString; | |
import it.skymedia.safetrack.bean.Documento; | |
import it.skymedia.safetrack.bean.Indirizzo; | |
import it.skymedia.safetrack.bean.Persona; | |
import it.skymedia.safetrack.bean.Persona.Tipo; | |
import it.skymedia.safetrack.bean.Riferimento; | |
import it.skymedia.safetrack.bean.Veicolo; |
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 ImageMapView extends ImageView{ | |
private final static int INVALID_POINTER_ID = -1; | |
private final ArrayList<Area> mAreaList = new ArrayList<ImageMapView.Area>(); | |
private final SparseArray<Area> mIdToArea = new SparseArray<ImageMapView.Area>(); | |
private OnClickAreaListener mListener; | |
private int mTouchId = INVALID_POINTER_ID; | |
private float mTouchX; | |
private float mTouchY; | |
private final float mSquaredTouchSlop; |
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 final class Data { | |
private Data(){} | |
static final String TABLE_DESTINAZIONE = "destinazione"; | |
static final String TABLE_DESTINAZIONE_GALLERY = "destinazione_gallery"; | |
static final String TABLE_DESTINAZIONE_PREFERITI = "destinazione_preferiti"; | |
static final String TABLE_EVENTO = "evento"; | |
static final String TABLE_EVENTO_GALLERY = "evento_gallery"; | |
static final String TABLE_EVENTO_PREFERITI = "evento_preferiti"; | |
static final String TABLE_INFOPOINT = "infopoint"; |
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
LOCAL_PATH := $(call my-dir) | |
include $(CLEAR_VARS) | |
LOCAL_MODULE := bitmapsfix | |
LOCAL_SRC_FILES := bitmaps.c | |
LOCAL_LDLIBS := -llog -ljnigraphics | |
include $(BUILD_SHARED_LIBRARY) |
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
try { | |
URL url=new URL("foo"); | |
} catch (MalformedURLException e) { | |
//throw new RuntimeException(e); | |
sneak(e); | |
} | |
StackTrace: | |
Exception in thread "main" java.net.MalformedURLException: no protocol: foo |
NewerOlder