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
#-*-coding:utf8-*- | |
from study.models import * | |
from BeautifulSoup import BeautifulSoup | |
import re,datetime | |
exclude_words = [u'1:1', u'명', u'문장', u'시간', u'PT', u'세', u'일', u'월'] | |
time_regex = [ur'((?:저녁|아침)(?:시간)?|AM|PM|오(?:전|후))?\s*([0-2]?\d)\s*([시:])?\s*((?:[0-5]?\d분?|반))?\s*((?:저녁|아침)(?:시간)?|명|AM|PM|오(?:전|후))?\s*((?:-|–|~|부터|또는))\s*((?:저녁|아침)(?:시간?)?|AM|PM|오(?:전|후))?\s*([0-2]?\d)\s*([시:])\s*((?:[0-5]?\d분?|반))?\s*((?:저녁|아침)(?:시간)?|AM|PM|오(?:전|후))?', | |
ur'((?:저녁|아침)(?:시간)?|오(?:전|후))\s*([0-2]?\d)\s*([시:])?\s*((?:[0-5]?\d분?|반))?\s*((?:-|–|~|부터|또는))\s*((?:저녁|아침)(?:시간?)?|오(?:전|후))?\s*([0-2]?\d)\s*([시:])?\s*((?:[0-5]?\d분?|반))?', | |
ur'((?:저녁|아침)(?:시간)?|오(?:전|후))?\s*([0-2]?\d)\s*([시:])?\s*((?:[0-5]?\d분?|반))?\s*((?:-|–|~|부터|또는))\s*((?:저녁|아침)(?:시간?)?|오(?:전|후))\s*([0-2]?\d)\s*([시:])?\s*((?:[0-5]?\d분?|반))?', |
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 domain = require('domain').create(), | |
errorFlag = true; | |
domain.on('error', function() | |
{ | |
console.log('error catch'); | |
if(errorFlag == true) | |
errorHandler(); | |
console.log(this) | |
}); |
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 org.sunrin | |
import scala.beans.BeanProperty | |
class Property | |
{ | |
var varProperty = "var" | |
val valProperty = "val" | |
private var privateVarProperty = "private_var" |
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
object Main { | |
def main(args: Array[String]): Unit = { | |
val test = new Test; | |
test.increment() | |
test.isLess(new Test()); | |
test.print(); | |
} | |
class Test |
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
object Main { | |
def main(args: Array[String]): Unit = { | |
val p1 = new Person | |
val p2 = new Person("Loup") | |
val p3 = new Person("Loup", 19) | |
} | |
class Person | |
{ |
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
object Main { | |
def main(args: Array[String]): Unit = { | |
val p1 = new Person("Loup", 19) | |
} | |
class Person(val name: String, val age: Int) | |
{ | |
println("Hello " + name + "(" + age + ")") | |
} |
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
object Main { | |
def main(args: Array[String]): Unit = { | |
val p1 = Person.apply("Loup") | |
val p2 = Person("Loup") | |
} | |
class Person(val id: Int, val name: String) | |
{ | |
println("Hello " + name) |
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
import scala.collection.mutable.ArrayBuffer | |
object Main { | |
def main(args: Array[String]): Unit = { | |
val n1 = new Network | |
val n2 = new Network | |
val loup = n1.join("loup") | |
val bob = n2.join("bob") |
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
import scala.collection.mutable.ArrayBuffer | |
/* | |
object Main { | |
def main(args: Array[String]): Unit = { | |
} | |
} | |
*/ |
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
import scala.collection.mutable.ArrayBuffer | |
import scala.collection.mutable.LinkedList | |
import scala.collection.mutable.BitSet | |
import java.util.LinkedHashSet | |
object Main { | |
def main(args: Array[String]): Unit = { | |
new Collection() | |
} | |
} |
OlderNewer