Skip to content

Instantly share code, notes, and snippets.

@localdisk
localdisk / workshop.md
Created July 8, 2015 02:51
Laravel Workshop 計画
"============================
" General
"============================
" 入力欄に自動フォーカスしない
set focuscontent
" /,? 検索結果をハイライト
set hlsearch
" :oなどでの補完候補をサーチエンジン、履歴に限定
@localdisk
localdisk / plugin_loader.js
Created August 26, 2015 06:51
plugin_loader.js
/* {{{
Copyright (c) 2008, anekos.
All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice,
this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright notice,
@localdisk
localdisk / services.php
Created September 12, 2015 09:21
laravel socialite twitter
<?php
return [
'twitter' => [
'client_id' => env('TWITTER_CLIENT_ID'),
'client_secret' => env('TWITTER_CLIENT_SECRET'),
'redirect' => 'http://127.0.0.1:8000/auth/twitter/callback',
],
];
@localdisk
localdisk / routes.php
Created September 12, 2015 09:24
Laravel Socialite Twitter
<?php
Route::get('/', function () {
if (!Auth::check()) {
// ログイン済でなければリダイレクト
$url = url('auth/twitter');
$text = 'twitter でログイン';
return 'こんにちは ゲストさん. ' . '<a href="' . $url . '">' . $text . '</a>';
}
@localdisk
localdisk / gist:84ea12bf89938d9190eb
Created November 26, 2015 23:05
viChrome settings
### Sample Settings
# aliases
# in this example you can open extensions page by the command ':ext'
# and Chrome's option page by the command ':option'
alias ext TabOpenNew chrome://extensions/
alias option TabOpenNew chrome://settings/browser
alias downloads TabOpenNew chrome://downloads
alias history TabOpenNew chrome://history
@localdisk
localdisk / laravel.php
Created December 24, 2015 09:28
deployer laravel recipe
<?php
require 'recipe/common.php';
// Laravel shared dirs
set('shared_dirs', [
'storage/app',
'storage/framework/cache',
'storage/framework/sessions',
'storage/framework/views',
@localdisk
localdisk / layout.blade.php
Created February 4, 2016 02:18
layout.blade.php
<!doctype html>
<html lang="ja">
<head>
<meta charset="UTF-8">
<title>@yield('title', 'default title')</title>
<link rel="stylesheet" href="{{ asset('/css/bootstrap.min.css') }}">
<link rel="stylesheet" href="{{ asset('/css/bootstrap.theme.min.css') }}">
@section('css')
@show
</head>
@localdisk
localdisk / home.blade.php
Created February 4, 2016 02:19
home.blade.php
@extends('layouts.default')
@section('content')
<h1>Hello</h1>
@stop
@section('button')
<button class="btn btn-primary">bar</button>
@show
@localdisk
localdisk / result.json
Created February 22, 2016 05:26
なんでやねん…
{
"changed":false,
"failed":true,
"invocation":{
"module_args":{
"conf_file":null,
"disable_gpg_check":false,
"disablerepo":null,
"enablerepo":null,
"exclude":null,