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
import { path } from 'path'; | |
import { glob } from 'glob'; | |
import { webpack } from 'webpack'; | |
const entries = Object.assign( | |
...glob.sync('./app/webroot/scripts/js/test/**/entry.js') | |
.map(file => ({ [ path.basename(path.dirname(file)) ]: file })) | |
); | |
console.log(Object.keys(entries)) |
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
python3<<<"import neovim; neovim.attach('socket', path='$NVIM_LISTEN_ADDRESS').input('<C-\\><C-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
<!DOCTYPE html> | |
<html lang="ja"> | |
<head> | |
<meta charset="UTF-8"> | |
<title></title> | |
</head> | |
<body> | |
<div id="app" style="display: none" :style="{ display: 'block' }"> | |
<input type="button" value="ホモを出す" v-on:click="activate"> | |
<ul> |
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
os: linux | |
node_js: '12' | |
sudo: required | |
env: DISPLAY=':99.0' | |
dist: trusty | |
addons: | |
apt: | |
update: true | |
sources: | |
- google-chrome |
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
<?php | |
$str = str_repeat(PHP_VERSION, 200000); | |
$len = strlen($str); | |
$r = null; | |
$e = null; | |
$w = []; | |
$bytes = []; | |
foreach (range(1, 100) as $i) { | |
$w[] = $fp = fopen("test{$i}.txt", 'wb'); |
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
/* タイトルと URL コピーするやつ */ | |
!function (document) { | |
var text = prompt("コメント:"); | |
if (text == null) { | |
return; | |
} | |
text = text === "" ? "" : text + "\n\n"; | |
var body = document.body; | |
var element = document.createElement("textarea"); |
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
using System; | |
/// <summary> | |
/// <see cref="System.ValueType"/> への拡張メソッドを提供します。 | |
/// </summary> | |
public static class ValueTypeExtensions | |
{ | |
/// <summary> | |
/// 文字列形式を、<see cref="System.Boolean"/> に変換します。変換できない場合は <c>null</c> を返します。 | |
/// </summary> |
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
#include <stdio.h> | |
int main(int n, char **m) { | |
FILE *p, *q; | |
int A, k, a, r, i; | |
char *d = "P%" "d\n%d\40%d" "\n%d\n\00wb+", | |
b[1024], | |
y[] = "yuriyurarararayuruyuri*daijiken**akkari~n**" | |
"/y*u*k/riin<ty(uyr)g,aur,arr[a1r2a82*y2*/u*r{uyu}riOcyurhiyua**rrar+*arayra*=" | |
"yuruyurwiyuriyurara'rariayuruyuriyuriyu>rarararayuruy9uriyu3riyurar_aBrMaPrOaWy^?" |
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
<?php | |
function GetVersion($command, $pattern = '/([\d.]*[\d])/') { | |
if (preg_match($pattern, shell_exec($command), $matches)) { | |
return $matches[1]; | |
} | |
return false; | |
} | |
$versions = [ | |
'php' => phpversion(), |
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
void(function(){var c=prompt("コメント:");c=c===""||c===null?"":c+"\n\n";window.open("http://twitter.com/share?text="+encodeURIComponent(c+document.title+" -")+"&url="+location.href,"share","height=400,width=600,left="+(screen.width/2-600/ 2) + ",top=" + (screen.height/2-400/2))})(); |