CoffeeScript 1.7 is shaping up to be a pretty kick-ass release with significant improvements. Here are the ones I'm most excited about, in order of my own excitement.
Years of being wished for, finally granted!
| express = require("express") | |
| request = require("request") | |
| BufferList = require("bufferlist").BufferList | |
| app = express.createServer(express.logger(), express.bodyParser()) | |
| app.get "/", (req, res) -> | |
| if req.param("url") | |
| url = unescape(req.param("url")) | |
| request | |
| uri: url | |
| encoding: 'binary' |
| " コマンド | |
| :echo commands.get('コマンド名').action | |
| " マッピング | |
| :echo mappings.get(modes.NORMAL, '<C-n>').action |
| request = require('request') | |
| cheerio = require('cheerio') | |
| iconv = require('iconv-jp') | |
| module.exports = (robot) -> | |
| robot.hear /http(s?):\/\/(.*)/i, (msg) -> | |
| url = msg.match[0] | |
| unless url.match(/\.(png|jpg|jpeg|gif|txt|zip|tar\.bz|js|css)/) # filter out some common files from trying |
| /** | |
| * @see http://blog.64p.org/entry/2013/02/21/121830 | |
| * @see http://mattn.kaoriya.net/software/vim/20130221123856.htm | |
| * @see http://yuroyoro.hatenablog.com/entry/2013/02/21/144004 | |
| * @see http://ymotongpoo.hatenablog.com/entry/2013/02/21/160646 | |
| * @see http://d.hatena.ne.jp/syohex/20130221/1361423585 | |
| * @see http://blog.livedoor.jp/dankogai/archives/51855038.html | |
| * @see http://d.hatena.ne.jp/hasegawayosuke/20130221 | |
| * @see https://gist.github.com/tk0miya/5002917 | |
| * @see http://app2641.hatenablog.com/entry/2013/02/21/161928 |
CoffeeScript 1.7 is shaping up to be a pretty kick-ass release with significant improvements. Here are the ones I'm most excited about, in order of my own excitement.
Years of being wished for, finally granted!
| bind main o !@git browse-remote %(commit) | |
| bind diff o !@git browse-remote %(commit) | |
| bind log o !@git browse-remote %(commit) |
| /* NEW BSD LICENSE {{{ | |
| Copyright (c) 2014, anekos. | |
| All rights reserved. | |
| Redistribution and use in source and binary forms, with or without modification, | |
| are permitted provided that the following conditions are met: | |
| 1. Redistributions of source code must retain the above copyright notice, | |
| this list of conditions and the following disclaimer. | |
| 2. Redistributions in binary form must reproduce the above copyright notice, |
| /* | |
| yarn init -y | |
| yarn add webpack webpack-cli webpack-serve html-webpack-plugin -D | |
| yarn add babel-loader@^8.0.0-beta @babel/core @babel/preset-env -D | |
| echo '{ "presets": ["@babel/preset-env"] }' > .babelrc | |
| */ | |
| const HtmlPlugin = require("html-webpack-plugin"); | |
| module.exports = { | |
| mode: process.env.NODE_ENV || "development", |