ファイルが更新されたときに実行したいコマンドをあとに続ける
./restart.bash php server.php
package main | |
import ( | |
"fmt" | |
"golang.org/x/sys/windows" | |
) | |
func main() { | |
filename := []uint16{0xD800, 0x00} |
package main | |
import ( | |
"fmt" | |
"runtime" | |
"github.com/go-ole/go-ole" | |
"github.com/go-ole/go-ole/oleutil" | |
"golang.org/x/sys/windows" | |
) |
//go:generate go run golang.org/x/sys/windows/mkwinsyscall -output zmain_windows.go main.go | |
//sys GetConsoleProcessList(processList []uint32) (processCount uint32, err error) | |
//sys SetConsoleTitle(consoleTitle string) (err error) = SetConsoleTitleW | |
package main | |
import ( | |
"bufio" | |
"fmt" | |
"os" |
os: linux | |
node_js: '12' | |
sudo: required | |
env: DISPLAY=':99.0' | |
dist: trusty | |
addons: | |
apt: | |
update: true | |
sources: | |
- google-chrome |
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text.RegularExpressions; | |
public class 淫夢語録 | |
{ | |
private static Dictionary<Func<string, bool>, string> sayings = new Dictionary<Func<string, bool>, string> | |
{ | |
{ text => Regex.IsMatch(text, "(?:なん|何)でも(?:し|す)") && !Regex.IsMatch(text, "ん[??]"), "ん?" }, |
define('sample.vue', [], '<template></template>'); | |
httpVueLoader._httpRequest = httpVueLoader.httpRequest; | |
httpVueLoader.httpRequest = function (url) { | |
if (!require.defined(url)) { | |
return httpVueLoader._httpRequest.apply(this, arguments); | |
} | |
new Promise(function (resolve, reject) { | |
require([ url ], function (template) { |
<!DOCTYPE html> | |
<html lang="ja"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>タイトルです</title> | |
</head> | |
<body> | |
<form name="head"></form> | |
<form name="title"></form> | |
<form name="body"></form> |
#!/bin/bash | |
RUN=/opt/vyatta/bin/vyatta-op-cmd-wrapper | |
# Slack Webhook | |
HOOK_URL='' | |
# Arguments | |
GROUP=$1 | |
INTF=$2 | |
STATUS=$3 |
<?php | |
// https://qiita.com/mpyw/items/0fdffd3c70b3abd802f5 | |
function array_group_by_range(array $array, $separator = '-') | |
{ | |
sort($array, SORT_NUMERIC); | |
$pairs = $ranges = []; | |
foreach (array_values(array_unique($array, SORT_NUMERIC)) as $i => $v) { | |
$pairs[$v - $i][isset($pairs[$v - $i])] = $v; | |
} |