Skip to content

Instantly share code, notes, and snippets.

diff --git a/node_modules/brace/index.js b/node_modules/brace/index.js
index 5999cf6..c5ce592 100644
--- a/node_modules/brace/index.js
+++ b/node_modules/brace/index.js
@@ -11298,6 +11298,8 @@ EditSession.$uid = 0;
function isFullWidth(c) {
if (c < 0x1100)
return false;
+ // Treat a character whose East Asian Width property is "Ambiguous"
+ // as full-width.
return c >= 0x1100 && c <= 0x115F ||
c >= 0x11A3 && c <= 0x11A7 ||
c >= 0x11FA && c <= 0x11FF ||
c >= 0x2329 && c <= 0x232A ||
c >= 0x2E80 && c <= 0x2E99 ||
c >= 0x2E9B && c <= 0x2EF3 ||
c >= 0x2F00 && c <= 0x2FD5 ||
c >= 0x2FF0 && c <= 0x2FFB ||
c >= 0x3000 && c <= 0x303E ||
c >= 0x3041 && c <= 0x3096 ||
@sinkuu
sinkuu / main.rs
Last active September 3, 2020 13:21
cargo-unused-deps
use cargo_metadata::{CargoOpt, DependencyKind, MetadataCommand};
use std::process::Command;
fn main() {
let mut packages = MetadataCommand::new()
.manifest_path("./Cargo.toml")
.features(CargoOpt::AllFeatures)
.exec()
.unwrap()
.packages;
[package]
name = "foo"
version = "0.1.0"
[dependencies]
futures = "0.1"
#![feature(prelude_import)]
#![no_std]
#[prelude_import]
use std::prelude::v1::*;
#[macro_use]
extern crate std;
macro_rules! panic(( $ ( $ t : tt ) * ) => { panic ( $ ( $ t ) * ) } ;);
use std::ops::Add;
--- old 2018-03-12 21:56:41.351987492 +0900
+++ new 2018-03-12 21:55:53.209566593 +0900
@@ -136,10 +136,786 @@
let x = 1;
let y = NonDebug(0);
- if !(x == 1 && y + NonDebug(1) == NonDebug(0) && x == 1 && { 1 == 0 }) {
- {
- ::rt::begin_panic("assertion failed: x == 1 && y + NonDebug(1) == NonDebug(0) && x == 1 && { 1 == 0 }",
- &("test2.rs", 14u32, 5u32))
#![feature(rustc_private)]
#![feature(decl_macro)]
extern crate getopts;
extern crate rustc;
extern crate rustc_data_structures;
extern crate rustc_driver;
extern crate rustc_errors;
extern crate rustc_mir;
extern crate syntax;
#0 0x00007f97ef54b57c in __lll_lock_wait () from /lib64/libpthread.so.0
#1 0x00007f97ef5435ae in pthread_mutex_lock () from /lib64/libpthread.so.0
#2 0x000000000041e83e in mozilla::detail::MutexImpl::lock() ()
#3 0x00007f97ddd37376 in mozilla::layers::APZCTreeManager::GetTargetAPZC(mozilla::layers::ScrollableLayerGuid const&) () from $HOME/Apps/firefox/libxul.so
#4 0x00007f97ddd3a62f in mozilla::layers::APZCTreeManager::StopAutoscroll(mozilla::layers::ScrollableLayerGuid const&) () from $HOME/Apps/firefox/libxul.so
#5 0x00007f97de81cb6b in mozilla::dom::TabParent::StopApzAutoscroll(unsigned long, unsigned int) () from $HOME/Apps/firefox/libxul.so
#6 0x00007f97dffd0e2a in NS_InvokeByIndex () from $HOME/Apps/firefox/libxul.so
#7 0x00007f97df90d2bf in XPCWrappedNative::CallMethod(XPCCallContext&, XPCWrappedNative::CallMode) () from $HOME/Apps/firefox/libxul.so
#8 0x00007f97df90f6a8 in XPC_WN_CallMethod(JSContext*, unsigned int, JS::Value*) () from $HOME/Apps/firefox/libxul.so
#9 0x00007f97dfcc67aa in j
#![feature(rustc_private)]
extern crate getopts;
extern crate rustc;
extern crate rustc_driver;
extern crate rustc_errors;
extern crate syntax;
use rustc::session::Session;
use rustc::session::config::{self, ErrorOutputType, Input};
@sinkuu
sinkuu / Makefile
Last active February 6, 2018 04:48
図をつくるやつ
SVG = $(wildcard figs/*.svg)
SVG_PDF = $(patsubst %.svg,%.pdf,$(SVG))
PLOT = $(wildcard plots/*.plt)
PLOT_TEX = $(patsubst %.plt,%.tex,$(PLOT))
all: $(PLOT_TEX) $(SVG_PDF)
%.pdf: %.svg
inkscape -z -D --export-pdf="$@" $? --export-latex
# inkscapeが相対パスを考慮してくれない問題への対策