Skip to content

Instantly share code, notes, and snippets.

View fregmented's full-sized avatar
🌌

HanWool Lee fregmented

🌌
View GitHub Profile
View yobi warn sup
[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.
@fregmented
fregmented / login
Created March 28, 2015 12:53
flask
View login
@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'))
View 여러 인풋
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({
View 실제 업로드
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) {
View -.-
/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
View ?????
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);
}
View reverse-proxy
server {
listen 80;
server_name domain;
location / {
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_pass http://127.0.0.1:[dest-post];
}
}
View gitlab.rb
## Url on which GitLab will be reachable.
## For more details on configuring external_url see:
## https://gitlab.com/gitlab-org/omnibus-gitlab/blob/629def0a7a26e7c2326566f0758d4a27857b52a3/README.md#configuring-the-external-url-for-gitlab
external_url ''
## Note: configuration settings below are optional.
## Uncomment and change the value.
############################
# gitlab.yml configuration #
View gist:6726ee0fa4f9b816f061
seyrizui-Mac-mini:SUGARAIN seyriz$ ./gradlew --parallel --stacktrace assemble
Parallel execution is an incubating feature.
:app:preBuild
:xmlrpc:compileLint
:robotoCalendarLibrary:compileLint UP-TO-DATE
:robotoCalendarLibrary:copyReleaseLint
:app:preDebugBuild
:xmlrpc:copyReleaseLint UP-TO-DATE
:app:preDebugBuild UP-TO-DATE
:robotoCalendarLibrary:copyReleaseLint UP-TO-DATE
@fregmented
fregmented / stacktrace.java
Created October 3, 2015 16:38
Youtrack GitLab integration stacktrace
View stacktrace.java
16:03:50,474 WARN [TransactionalResourceFilter ] [tp1530388690-16] [HanWool@220.123.69.35] Can't commit rest transaction
jetbrains.youtrack.integration.github.rest.JerseyClientExceptionWrapper: javax.ws.rs.NotFoundException: HTTP 404 Not Found
at jetbrains.youtrack.integration.github.rest.BitBucketRest.post(BitBucketRest.java:201)
at jetbrains.youtrack.integration.github.rest.GitLabRest.createHook(GitLabRest.java:72)
at jetbrains.youtrack.integration.github.persistence.GitLabChangesProcessorImpl.doCreateHook(GitLabChangesProcessorImpl.java:38)
at jetbrains.youtrack.integration.github.persistence.GithubCloneChangesProcessorImpl.createHook(GithubCloneChangesProcessorImpl.java:74)
at jetbrains.youtrack.integration.github.persistence.GithubRepoChangesListener.addedSyncBeforeConstraints(GithubRepoChangesListener.java:26)
at jetbrains.teamsys.dnq.runtime.events.EventsMultiplexer.handleChange(EventsMultiplexer.java:297)
at jetbrains.teamsys.dnq.runtime.events.EventsMultiplexer.handlePerEntityTypeChanges(Ev