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
| $(document).ready( | |
| function() { | |
| $('input:text[name=banned_word]').change( | |
| function() { | |
| restrictCharsAsPassword($(this)); | |
| }); | |
| }); | |
| //アスキー文字以外,半角スペース、アンパサンド、バックスラッシュ、シングルクォーテーションの入力を禁止する | |
| function restrictCharsAsPassword(obj) { |
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
| HSSFCellStyle cellStyle = workbook.createCellStyle(); | |
| // necessary | |
| cellStyle.setFillPattern(HSSFCellStyle.SOLID_FOREGROUND); | |
| // not BackgroundColor | |
| cellStyle.setFillForegroundColor(HSSFColor.RED.index); | |
| cell.setCellStyle(cellStyle); |
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
| [core] | |
| autocrlf = true | |
| safecrlf = false | |
| editor = gvim | |
| [color] | |
| ui = true | |
| [alias] | |
| co = checkout | |
| b = branch | |
| s = status |
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 connect(self): | |
| - sock = socket.create_connection((self.host, self.port)) | |
| - self.sock = ssl.wrap_socket(sock, keyfile=self.key_file, | |
| + httplib.HTTPConnection.connect(self) | |
| + self.sock = ssl.wrap_socket(self.sock, keyfile=self.key_file, | |
| certfile=self.cert_file, | |
| cert_reqs=self.cert_reqs, | |
| ca_certs=self.ca_certs) |
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
| <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> | |
| <html> | |
| <head> | |
| <meta http-equiv="Content-Type" content="text/html; charset=windows-31j"> | |
| <title>form validation</title> | |
| <script type="text/javascript"> | |
| function submitAfterValidation() { | |
| var invalid = false; | |
| if (document.myform.text1.value.length == 0) { | |
| alert("text1"); |
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
| char[] charArray = Character.toChars(0x0041); | |
| String s = new String(charArray); // s には "A" が格納される。 |
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
| <project name="make_tool_jar" default="archive" basedir="."> | |
| <property name="dest.dir" value="${basedir}/SymbolicLinkCreator"/> | |
| <property name="lib.dir" value="${dest.dir}/lib"/> | |
| <property name="dest.jar.name" value="my-cron.jar"/> | |
| <property name="temp.dir" value="${dest.dir}/temp"/> | |
| <property name="temp.src" value="${temp.dir}/src"/> | |
| <property name="temp.build" value="${temp.dir}/build"/> | |
| <property name="hello.src.main.dir" value="${basedir}/src/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
| #ファイル名 | |
| # Makefile | |
| #書式 | |
| # [作るもの]:[材料] | |
| # (---Tab---)[作り方] | |
| #実行 | |
| # make [作るもの] | |
| # ※[作るもの]を省略した場合は一番上のものが対象となる |