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
wdiff -n foo bar | colordiff |
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
(function() { | |
'use strict'; | |
var aa = encodeURIComponent, | |
ba = navigator, | |
ca = Error, | |
da = parseFloat, | |
ea = Object, | |
k = Math, | |
m = window, | |
ga = parseInt, |
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
@extends('layouts.master') | |
@section('content') | |
@foreach ($users as $user) | |
<p>This is user</p> | |
@endforeach | |
@endsection |
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
{% extends "layouts.master" %} | |
{% block content %} | |
{% for user in users %} | |
<p>This is user {{ user.id }}</p> | |
{% endfor %} | |
{% endblock %} |
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
@forelse ($user in $user) | |
@if(!$user->subscribed) | |
{{ $user->name }} | |
@endif | |
@empty | |
<p>No users found</p> | |
@endforelse |
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
{% for user in users %} | |
{% if not user.subscribed %} | |
{{ user.name }} | |
{% endif %} | |
{% else %} | |
<p>No users found</p> | |
{% endfor %} |
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
form database | |
#################################################################### | |
# Dump of table branch | |
# ------------------------------------------------------------ | |
CREATE TABLE `branch` ( | |
`ID` int(10) unsigned NOT NULL AUTO_INCREMENT, | |
`NAME` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, |
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
/** | |
* 共通エラーページ | |
*/ | |
protected function renderHttpException(\Symfony\Component\HttpKernel\Exception\HttpException $e) | |
{ | |
$status = $e->getStatusCode(); | |
return response()->view("errors.common", ['exception' => $e], $status); | |
} |
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
% brew link php71 | |
Warning: [email protected] is keg-only and must be linked with --force | |
Note that doing so can interfere with building software. | |
If you need to have this software first in your PATH instead consider running: | |
echo 'export PATH="/usr/local/opt/[email protected]/bin:$PATH"' >> ~/.zshrc | |
echo 'export PATH="/usr/local/opt/[email protected]/sbin:$PATH"' >> ~/.zshrc | |
% php -v | |
PHP 7.0.29 (cli) (built: Apr 12 2018 03:13:39) ( NTS ) |
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
// ==UserScript== | |
// @name Replace 4 spaces with a tab character for Slack. | |
// @namespace M_Ishikawa | |
// @version 0.1 | |
// @description Slack 4スペースをタブ文字に変換 | |
// @author Masayuki Ishikawa | |
// @match https://*.slack.com/* | |
// @grant none | |
// ==/UserScript== |
OlderNewer