Skip to content

Instantly share code, notes, and snippets.

View fregmented's full-sized avatar
🌌

HanWool Lee fregmented

🌌
View GitHub Profile
private synchronized void buildListsByPlaylist(){
ConcurrentMap<String, List<MediaMetadata>> newMusicListByPlaylist = new ConcurrentHashMap<>();
for(MutableMediaMetadata m : mMusicListById.values()){
String playlist = m.metadata.getString(CUSTOM_METADATA_PLAYLIST_NAME);
List<MediaMetadata> list = newMusicListByPlaylist.get(playlist);
Log.e("buildListsByPlaylist", playlist);
if(list == null){
list = new ArrayList<>();
newMusicListByPlaylist.put(playlist, list);
}
/usr/bin/python /Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/dev_appserver.py --host 0.0.0.0 .
INFO 2015-04-06 15:17:37,262 sdk_update_checker.py:229] Checking for updates to the SDK.
INFO 2015-04-06 15:17:37,563 sdk_update_checker.py:257] The SDK is up to date.
INFO 2015-04-06 15:17:37,706 api_server.py:172] Starting API server at: http://localhost:57443
INFO 2015-04-06 15:17:37,709 dispatcher.py:186] Starting module "default" running at: http://0.0.0.0:8080
INFO 2015-04-06 15:17:37,710 admin_server.py:118] Starting admin server at: http://localhost:8000
{'client_id': 'HGlten1t_vx4x6EhtSvO', 'callback': 'http://shiro.eth9.net:8080/login/naver/callback', 'client_secret': 'oqaSyP0b0_'}
HGlten1t_vx4x6EhtSvO
oqaSyP0b0_
http://shiro.eth9.net:8080/login/naver/callback
function upload(url, formdata, status){
console.log("upload");
console.log(url);
console.log(formdata);
var extraData ={}; //Extra Data.
var jqXHR=$.ajax({
xhr: function() {
var xhrobj = $.ajaxSettings.xhr();
if (xhrobj.upload) {
console.log("Droped!");
var files = e.originalEvent.dataTransfer.files;
console.log(files)
//We need to send dropped files to Server
//handleFileUpload(files,obj);
var urls = [];
for(var i = 0; i<files.length; i++){
var fd = new FormData();
fd.append('musics', files[i]);
$.ajax({
@fregmented
fregmented / login
Created March 28, 2015 12:53
flask
@module.route('/naver/callback')
def naverCallback():
result = naver.getAuth(request.args)
print('result', type(result), result)
if(type(result) is dict):
print('tokeType', result.get('token_type'))
print('access_toke', result.get('access_token'))
userUnique = naver.getUserInfo(result.get('token_type'), result.get('access_token')).get('data').get('response')
print('userUniq', userUnique)
user = isNaverLogined(userUnique.get('enc_id'))
[warn] /home/seyriz/yobiNext/activator-1.2.12-minimal/yobi/app/views/search/partial_search.scala.html:39: match may not be exhaustive.
[warn] It would fail on the following input: AUTO
[warn] search_type match {
[warn] ^
[warn] /home/seyriz/yobiNext/activator-1.2.12-minimal/yobi/app/views/search/partial_search.scala.html:53: match may not be exhaustive.
[warn] It would fail on the following input: AUTO
[warn] search_type match {
[warn] ^
model contains 536 documentable templates
[info] Main Scala API documentation successful.