Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.
Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.
package net.jodybrewster.linkedinlogin; | |
import android.app.Activity; | |
import android.content.Intent; | |
import android.content.IntentSender; | |
import android.util.Log; | |
import com.facebook.react.bridge.Arguments; | |
import com.facebook.react.bridge.ReactApplicationContext; | |
import com.facebook.react.bridge.ReactContextBaseJavaModule; |
package net.jodybrewster.linkedinlogin; | |
import android.app.Activity; | |
import com.facebook.react.ReactPackage; | |
import com.facebook.react.bridge.JavaScriptModule; | |
import com.facebook.react.bridge.NativeModule; | |
import com.facebook.react.bridge.ReactApplicationContext; | |
import com.facebook.react.uimanager.ViewManager; |
// I = 1, V = 5, X = 10, L = 50, C = 100, D = 500, M = 1,000 | |
// I II III IV V VI VII VIII IX X | |
// XI XII XIII XV XVI | |
// XXI, MMXVI 2016 | |
// 800 -> DCCC | |
// 900 -> CM | |
// given roman numeral -> int | |
// function roman_to_int(roman_numeral) {} | |
// DC -> 600 |
// Queue 구현 | |
// Stack 구현 | |
// Stack 2개로 Queue 구현 | |
class Queue { | |
constructor() { | |
this.size = 5; | |
this.array = []; | |
this.front = 0; | |
this.rear = 0; |
class UnlimitedQueue { | |
constructor() { | |
this.queueArray = []; | |
} | |
enqueue(val) { | |
// Create new queue if there is no available queue | |
if (this.queueArray.length === 0 || |
// input_csv_array = [ | |
// "1,28,300.1,San Francisco", | |
// "4,5,209.1,San Francisco", | |
// "20,7,208.1,San Francisco", | |
// "23,8,207.1,San Francisco", | |
// "16,10,206.1,Oakland", | |
// "1,16,205.1,San Francisco", | |
// "6,29,204.1,San Francisco", | |
// "7,20,203.1,San Francisco", | |
// "8,21,202.1,San Francisco", |
const MAX_VERTEX = 5; | |
const UC = 9999;// Unconnected | |
const data = [ | |
// 1 2 3 4 5 | |
[ 0, 0, 0, 0, 0, 0 ], | |
/*1*/[ 0, 0, 2, 4,UC,UC ], | |
/*2*/[ 0, 2, 0, 1, 3,UC ], | |
/*3*/[ 0, 4, 1, 0,UC, 2 ], | |
/*4*/[ 0,UC, 3,UC, 0, 1 ], |
var memberListArray = []; | |
memberListArray.push('test_value'); | |
$.ajax({ | |
url: "/api/user/member_add", | |
type: "POST", | |
traditional: true, | |
dataType: "json", | |
data: { | |
memberListArray: memberListArray |