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
| CREATE DATABASE IF NOT EXISTS kabuki DEFAULT CHARACTER SET = 'utf8' DEFAULT COLLATE 'utf8_general_ci'; | |
| GRANT USAGE ON *.* TO 'koken'@'localhost' IDENTIFIED BY 'Midori1981'; | |
| GRANT ALL PRIVILEGES ON kabuki.* TO 'koken'@'localhost'; | |
| FLUSH PRIVILEGES; |
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
| DECLARE | |
| TYPE tab_t IS TABLE OF VARCHAR2(20); | |
| tab tab_t | |
| := tab_t('11', | |
| '22', | |
| '33', | |
| '44', | |
| '55'); | |
| cnt NUMBER; | |
| idx NUMBER; |
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
| CREATE OR REPLACE FUNCTION spell_number(p_number IN NUMBER) | |
| RETURN VARCHAR2 AS | |
| TYPE myarray IS TABLE OF VARCHAR2(255); | |
| l_str myarray := myarray( | |
| '', | |
| ' thousand ', | |
| ' million ', | |
| ' billion ', | |
| ' trillion ', |
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
| #!/usr/bin/env groovy | |
| import javax.activation.* | |
| import javax.mail.* | |
| import javax.mail.internet.* | |
| @Grapes ([ | |
| @Grab (group = 'javax.activation', module = 'activation', version = '1.1.1'), | |
| @Grab (group = 'javax.mail', module = 'mail', version = '1.4.5') | |
| ]) |
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
| <?xml version="1.0" encoding="UTF-8"?> | |
| <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> | |
| <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> | |
| <head> | |
| <meta http-equiv="content-type" content="text/html; charset=utf-8" /> | |
| <title>An XHTML 1.0 Strict document</title> | |
| <style type="text/css"> |
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//EN" "http://www.w3.org/TR/html4/strict.dtd"> | |
| <html> | |
| <head> | |
| <meta http-equiv="content-type" content="text/html; charset=utf-8" /> | |
| <title>An HTML 4.01 Strict document</title> | |
| </head> | |
| <body> | |
| <p>... The document content goes here ...</p> |
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
| // ... | |
| response.setContentType("text/plain"); | |
| response.setCharacterEncoding("UTF-8"); | |
| response.setContentLength(tx.length()); | |
| response.setStatus(HttpStatus.OK.value()); | |
| response.setHeader("Access-Control-Allow-Origin", "*"); |
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
| <!-- header.php --> | |
| <!-- h2 class="site-description"><?php bloginfo( 'description' ); ?></h2 --> | |
| <h2 class="site-description"><?php echo html_entity_decode(get_bloginfo('description')); ?></h2> |
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
| private static final Logger LOG = Logger.getLogger(MyClass.class.getName()); | |
| static { | |
| Logger rootLogger = Logger.getLogger(""); | |
| rootLogger.setLevel(Level.INFO); | |
| rootLogger.addHandler(new ConsoleHandler()); | |
| Handler fileHandler; // set up a file handler as well... | |
| try { | |
| fileHandler = new FileHandler("file.log"); // a file in the current working directory |
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
| 'use strict'; | |
| var ip; | |
| function visibleIp(callback) { | |
| if (ip || (ip = process.env['VISIBLE_IP'])) { | |
| return process.nextTick(function() { callback(null, ip); }); | |
| } |