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
| class C { | |
| def call(num:Int):Unit = { | |
| } | |
| } | |
| class X { | |
| type Hoge = { def call(num:Int):Unit;} | |
| def exe(hoge:Hoge, num:Int) = { | |
| hoge.call(num) | |
| } |
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
| #!/bin/bash | |
| # This is the current stable release to default to, with Omnibus patch level (e.g. 10.12.0-1) | |
| # Note that the chef template downloads 'x.y.z' not 'x.y.z-r' which should be a duplicate of the latest -r | |
| use_shell=0 | |
| prerelease="false" | |
| # Check whether a command exists - returns 0 if it does, 1 if it does not | |
| exists() { |
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
| var defaultPath = function(){ | |
| } | |
| var spawn = require('child_process').spawn; | |
| var http = require('http'); | |
| var url = require('url'); | |
| var fs = require('fs'); | |
| var path = require('path'); |
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 main | |
| import ( | |
| "fmt" | |
| "math" | |
| ) | |
| func newton(x, z float64) float64{ |
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
| module.exports = (robot) -> | |
| robot.respond /ザラキ/ ,(msg)-> | |
| msg.send robot.name+" は しんでしまった" | |
| process.nextTick () -> | |
| throw new Error "!!! Thwack !!!" |
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
| var async = require('async'); | |
| var util = require("util") | |
| // execute multi query | |
| module.exports = function(connection, queries, options, cb){ | |
| if(typeof options === "function") cb = options, options = {}; | |
| if(!options) options = {}; | |
| if(typeof queries == "string"){ | |
| queries = [queries]; | |
| } |
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
| module.exports = function(){ | |
| //without space line or semicolon | |
| } | |
| // some comment |
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
| IrcBot = require 'hubot-irc' | |
| module.exports = (robot) -> | |
| dummy = IrcBot.use(robot) | |
| if(robot.adapter.constructor is not dummy.constructor) | |
| return | |
| robot.enter () -> | |
| bot = robot.adapter.bot | |
| bot.say = (target, str) -> | |
| this.notice(target, str) | |
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
| var path = require("path") | |
| var cheerio = require('cheerio') | |
| var request = require("request") | |
| var fs = require("fs") | |
| var mkdirp = require("mkdirp") | |
| require('events').EventEmitter; // TODO:イベントハンドリングするにはこれだったけど。 | |
| module.exports = function(url, options){ | |
| var getBaseUrl = function(url){ | |
| var urlObj = require('url').parse(url); | |
| return urlObj.protocol+"//"+urlObj.host; |
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
Show hidden characters
| [ | |
| { "keys": ["tab"], "command": "NULL" } , | |
| { "keys": ["tab"], "command": "insert", "args": {"characters": "\t"} }, | |
| { "keys": ["tab"], "command": "replace_completion_with_next_completion", "context": | |
| [ | |
| { "key": "last_command", "operator": "equal", "operand": "insert_best_completion" }, | |
| { "key": "setting.tab_completion", "operator": "equal", "operand": true } | |
| ] | |
| }, | |
| { "keys": ["tab"], "command": "reindent", "context": |