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
var o = { | |
message: (function() { | |
var who = "me", what = "call"; | |
alert(1); | |
return what + " " + who; }()), | |
getMsg: function() { | |
return this.message; | |
} | |
}; |
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
var getResult = (function() { | |
var res = 2 + 2; | |
return function() { | |
return res; | |
}; | |
}()); | |
gerResult; //function () { return res; } | |
getResult(); //4 |
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 com.tistory.devyongsik.search; | |
import com.google.common.collect.Lists; | |
import org.apache.lucene.analysis.core.WhitespaceAnalyzer; | |
import org.apache.lucene.document.Document; | |
import org.apache.lucene.document.Field; | |
import org.apache.lucene.document.FieldType; | |
import org.apache.lucene.facet.index.FacetFields; | |
import org.apache.lucene.facet.params.FacetSearchParams; | |
import org.apache.lucene.facet.search.*; |
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 com.tistory.devyongsik.search; | |
import org.apache.lucene.analysis.core.WhitespaceAnalyzer; | |
import org.apache.lucene.document.Document; | |
import org.apache.lucene.document.Field; | |
import org.apache.lucene.document.FieldType; | |
import org.apache.lucene.facet.index.FacetFields; | |
import org.apache.lucene.facet.params.FacetSearchParams; | |
import org.apache.lucene.facet.search.CountFacetRequest; | |
import org.apache.lucene.facet.search.FacetResult; |
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
git merge -s recursive -Xignore-space-at-eol --squash [브랜치명] |
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
<jdbc.url>jdbc:hsqldb:file:${user.home}/tomcat/db/sail_database;shutdown=true</jdbc.url> |
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 com.tistory.devyongsik.indexing; | |
import java.io.IOException; | |
import org.apache.lucene.analysis.core.WhitespaceAnalyzer; | |
import org.apache.lucene.document.Document; | |
import org.apache.lucene.document.Field; | |
import org.apache.lucene.document.FieldType; | |
import org.apache.lucene.document.FieldType.NumericType; | |
import org.apache.lucene.document.IntField; |
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 com.tistory.devyongsik.indexing; | |
import java.io.IOException; | |
import org.apache.lucene.analysis.core.WhitespaceAnalyzer; | |
import org.apache.lucene.document.Document; | |
import org.apache.lucene.document.Field; | |
import org.apache.lucene.document.FieldType; | |
import org.apache.lucene.index.CorruptIndexException; | |
import org.apache.lucene.index.DirectoryReader; |
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
{% extends "layout.html" %} | |
{% block body %} | |
{% if session.logged_in %} | |
<form action="{{ url_for('add_entry') }}" method=post class=add-entry id="actionForm"> | |
<dl> | |
<dt>name: | |
<dd><input type=text size=30 name=name id="name"> | |
<dt>email: | |
<dd><textarea name=email rows=5 cols=40 id="email"></textarea> | |
<dd><input type=submit value=Share> |
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
from sqlalchemy import Column, Integer, String | |
from database import Base | |
class User(Base): | |
__tablename__ = 'users' | |
id = Column(Integer, primary_key=True) | |
name = Column(String(50), unique=True) | |
email = Column(String(120), unique=True) | |
description = Column(String(120), unique=False) |