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
{ | |
"globals": { | |
"beforeEach": true, | |
"afterEach": true, | |
"describe": true, | |
"it": true, | |
"xdescribe": true, | |
"xit": true, | |
"expect": true, | |
"spyOn": true, |
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 express = require('express') | |
, mapRouter = require('./express-mapRouter') | |
, app = express.createServer() | |
, routesDir = __dirname + '/routes'; | |
// 'GET /' : 'root:index' はこれと同じ | |
// var root = require('./routes/root'); | |
// app.get('/', root.index); | |
var routesMap = { | |
'GET /' : 'root:index' |
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 baudio = require('baudio'), | |
b = baudio(); | |
var melody = [ | |
0, 0, 0, 0, | |
0, 0, 0, 0, | |
0, 0, 0, 0, | |
0, 0, 0, 0, | |
0, 0, 0, 0, |
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
from __future__ import print_function; import os; packs = [print(pack) for pack in os.listdir(sublime.packages_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
-- クエリ文字列から roomid を取得 | |
local roomid = request.query.roomid | |
-- http.request で ChatWork API で指定したルームにメッセージを送信 | |
local response = http.request { | |
method = 'POST', | |
url = 'https://api.chatwork.com/v1/rooms/'..roomid..'/messages', | |
headers = { | |
-- ChatWork API の token を指定 | |
['X-ChatWorkToken'] = 'YOUR_TOKEN' |
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 get_active_project_path(): | |
import os | |
window = sublime.active_window() | |
folders = window.folders() | |
if len(folders) == 1: | |
return folders[0] | |
else: | |
active_view = window.active_view() | |
active_file_name = active_view.file_name() if active_view else None | |
if not active_file_name: |
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
[ | |
{ | |
"keys": ["super+alt+p"], | |
"command": "show_overlay", | |
"args": { | |
"overlay": "command_palette", | |
"text": "Package Control: " | |
} | |
} | |
] |
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
{ | |
"color_scheme": "Packages/Theme - Piatto/Piatto Dark.tmTheme", | |
"draw_white_space": "all", | |
"font_size": 21, | |
"ignored_packages": | |
[ | |
"Vintage" | |
], | |
"translate_tabs_to_spaces": true, | |
"trim_trailing_white_space_on_save": true |
OlderNewer