This file contains 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
filetype plugin on " required | |
filetype indent on " required | |
" ctags | |
set fileformats=unix,dos,mac | |
set fileencodings=utf-8,sjis | |
" {{{ minpac memo | |
" プラグイン管理 | |
" プラグインの更新 :minpac#update() |
This file contains 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
<html> <head> <title>ファイルを書き込む</title> <meta charset="utf-8"> | |
</head> | |
<body> | |
<script> | |
function onInitFs(fs) { | |
fs.root.getFile('log3.txt', {create: true}, function(fileEntry) { | |
// Create a FileWriter object for our FileSystemFileEntry (log.txt). | |
fileEntry.createWriter(function(fileWriter) { | |
fileWriter.onwriteend = function(e) { |
This file contains 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
syntax on | |
filetype on | |
filetype plugin on | |
filetype indent on | |
packadd minpac | |
call minpac#init() | |
call minpac#add('scrooloose/nerdtree') | |
" open NERDTree with `Ctrl+n` |
This file contains 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
<html> | |
<head></head> | |
<body> | |
<template id="my-paragraph"> | |
<style> | |
p { | |
color: white; | |
background-color: #666; | |
padding: 5px; | |
} |
This file contains 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> | |
<html> | |
<head> | |
<title>中央寄せ</title> | |
<style> | |
.container { | |
display: block; | |
text-align: center; | |
} | |
.content { |
This file contains 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
#[derive(Debug)] | |
struct Value(i32); | |
#[derive(Debug)] | |
struct Shared<'a> { val: &'a Value } | |
#[derive(Debug)] | |
struct A<'a> { | |
shared: &'a mut Shared<'a>, | |
} |
This file contains 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> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title></title> | |
</head> | |
<body style="min-height: 100% height: 100%"> | |
<canvas id="drawingview" style="width: 100%; height: 100%"> | |
<script> |
This file contains 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
aug cargo_project_enter | |
au! | |
au VimEnter * if empty($filetype) && !empty(findfile('Cargo.toml')) | call SetupCargo() | endif | |
aug END | |
fu! SetupCargo() | |
echom "detect a cargo project" | |
setl path+=src/** | |
endfu |
This file contains 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
fn print_type_name<T>(_: T) -> &'static str { | |
std::any::type_name::<T>() | |
} |
OlderNewer