This file contains hidden or 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
$MaxMessageSize <size> で指定する | |
#(sender) | |
$MaxMessageSize 8k | |
#(receiver) | |
$MaxMessageSize 8k | |
$ModLoad imuxsock # provides support for local system logging |
This file contains hidden or 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
gist-vimからの投稿テスト |
This file contains hidden or 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 twitter4j.*; | |
/** | |
* Created by contee on 2014/07/02. | |
*/ | |
public class HelloTwitter { | |
public static void main(String[] args) throws TwitterException { | |
Twitter twitter = TwitterFactory.getSingleton(); | |
ResponseList<Status> homeTimeLine = twitter.getHomeTimeline(); |
This file contains hidden or 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
/** | |
* Created by contee on 2014/07/04. | |
*/ | |
fun main(args : Array<String>) { | |
println("Hello, world!") | |
} |
This file contains hidden or 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 net.contee.sample.hello; | |
import org.springframework.boot.SpringApplication; | |
import org.springframework.boot.autoconfigure.EnableAutoConfiguration; | |
import org.springframework.stereotype.Controller; | |
import org.springframework.web.bind.annotation.RequestMapping; | |
import org.springframework.web.bind.annotation.ResponseBody; | |
/** | |
* Created by contee on 2014/07/13. |
This file contains hidden or 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
def make_counter(init): | |
i = init | |
def count(): | |
nonlocal i | |
i = i + 1 | |
print(i) | |
return count | |
if __name__ == '__main__': |
This file contains hidden or 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
patterns = ( | |
('[sxz]$', '$', 'es'), | |
('[^aeioudgkprt]h$', '$', 'es'), | |
('[^aeiou]y$', 'y$', 'ies'), | |
('$', '$', 's') | |
) | |
def mls(pattern, remove, replace): | |
def match(word): | |
return re.search(pattern, word) |
This file contains hidden or 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
def log(f): | |
def wrapper(): | |
try: | |
print("in") | |
return f() | |
finally: | |
print("out") | |
return wrapper | |
def logvar(text): |
This file contains hidden or 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: utf-8 -*- | |
__author__ = 'contee' | |
""" | |
asyncio producer-consumer | |
~~~~~~~~~~~~~~ | |
""" | |
import asyncio, random |
This file contains hidden or 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
//*********************************************************// | |
// Copyright (c) Microsoft. All rights reserved. | |
// | |
// Apache 2.0 License | |
// | |
// You may obtain a copy of the License at | |
// http://www.apache.org/licenses/LICENSE-2.0 | |
// | |
// Unless required by applicable law or agreed to in writing, software | |
// distributed under the License is distributed on an "AS IS" BASIS, |
OlderNewer