This file contains hidden or 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 generateFirebaseToken(lineMid) { | |
| var firebaseUid = 'line:' + lineMid; | |
| var additionalClaims = { | |
| provider: 'LINE' | |
| }; | |
| return firebase.auth().createCustomToken(firebaseUid); | |
| } |
This file contains hidden or 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 Main { | |
| static ValueEventListener mListener; | |
| public static void main(String[] args) throws Exception { | |
| Firebase ref = new Firebase("https://<your-app>.firebaseio.com/"); | |
| mListener = ref.addValueEventListener(new ValueEventListener() { | |
| @Override | |
| public void onDataChange(DataSnapshot snapshot) { | |
| if (snapshot.exists()) { | |
| System.out.println("The value is now "+snapshot.getValue()); |
This file contains hidden or 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
| <!-- MIT License | |
| Copyright (c) 2016 Derrick Rono | |
| Permission is hereby granted, free of charge, to any person obtaining a copy | |
| of this software and associated documentation files (the "Software"), to deal | |
| in the Software without restriction, including without limitation the rights | |
| to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
| copies of the Software, and to permit persons to whom the Software is | |
| furnished to do so, subject to the following conditions: |
This file contains hidden or 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
| View.OnTouchListener detectClickAndHoldListener = new View.OnTouchListener() { | |
| private Timer timer = new Timer(); | |
| private long LONG_PRESS_TIMEOUT = 1337; // TODO: your timeout here | |
| private boolean wasLong = false; | |
| @Override | |
| public boolean onTouch(View v, MotionEvent event) { | |
| Log.d(getClass().getName(), "touch event: " + event.toString()); |
This file contains hidden or 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.memtrip; | |
| import java.io.FileNotFoundException; | |
| import java.io.IOException; | |
| import java.io.OutputStream; | |
| import android.content.ContentResolver; | |
| import android.content.ContentUris; | |
| import android.content.ContentValues; | |
| import android.graphics.Bitmap; |
This file contains hidden or 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
| char *tStr = strtok(outBuf,"("); | |
| tStr = strtok(NULL,"("); | |
| if(tStr == NULL) | |
| { | |
| Serial.println("No parenthesis"); | |
| } | |
| unsigned int hiPort,loPort; |
This file contains hidden or 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
Show hidden characters
| { | |
| "extends": "airbnb", | |
| "plugins": [ | |
| "react", | |
| "jsx-a11y", | |
| "import" | |
| ] | |
| } |
This file contains hidden or 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
| <html> | |
| <body> | |
| <h2>Privacy Policy</h2> | |
| <p>[Individual or Company Name] built the [App Name] app as a [open source | free | freemium | ad-supported | commercial] app. This SERVICE is provided by [Individual or company name] [at no cost] and is intended | |
| for use as is.</p> | |
| <p>This page is used to inform website visitors regarding [my|our] policies with the collection, use, and | |
| disclosure of Personal Information if anyone decided to use [my|our] Service.</p> | |
| <p>If you choose to use [my|our] Service, then you agree to the collection and use of information in | |
| relation with this policy. The Personal Information that [I|we] collect are used for providing and | |
| improving the Service. [I|We] will not use or share your information with anyone except as described |
This file contains hidden or 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
| const store = { | |
| subscribe: () => {}, | |
| dispatch: () => {}, | |
| getState: () => ({ ... whatever state you need to pass in ... }) | |
| } | |
| const options = { | |
| context: { store }, | |
| childContextTypes: { store: React.PropTypes.object.isRequired } | |
| } |