$ rm -rf ~/Library/Caches/RubyMine*
$ rm -rf ~/Library/Application Support/RubyMine*
$ rm -rf ~/Library/Preferences/RubyMine*
$ rm -rf ~/Library/Preferences/com.jetbrains.rubymine.plist*
$ rm -rf ~/Library/Logs/RubyMine*
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
export default function module() { | |
;[ | |
'ready', | |
'error', | |
'close', | |
'listen', | |
'render:before', | |
'render:setupMiddleware', | |
'render:errorMiddleware', | |
'render:resourcesLoaded', |
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
$ gem install docker-sync | |
Fetching: thor-0.20.3.gem (100%) | |
Successfully installed thor-0.20.3 | |
Fetching: gem_update_checker-0.2.0.gem (100%) | |
Successfully installed gem_update_checker-0.2.0 | |
Fetching: backticks-1.0.2.gem (100%) | |
Successfully installed backticks-1.0.2 | |
Fetching: docker-compose-1.1.12.gem (100%) | |
Successfully installed docker-compose-1.1.12 | |
Fetching: terminal-notifier-2.0.0.gem (100%) |
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
Usage: | |
rails new APP_PATH [options] | |
Options: | |
[--skip-namespace], [--no-skip-namespace] # Skip namespace (affects only isolated applications) | |
-r, [--ruby=PATH] # Path to the Ruby binary of your choice | |
# Default: /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/bin/ruby | |
-m, [--template=TEMPLATE] # Path to some application template (can be a filesystem path or URL) | |
-d, [--database=DATABASE] # Preconfigure for selected database (options: mysql/postgresql/sqlite3/oracle/frontbase/ibm_db/sqlserver/jdbcmysql/jdbcsqlite3/jdbcpostgresql/jdbc) | |
# Default: sqlite3 |
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
[ | |
{ | |
"names": ["銅貨", "Copper"], | |
"pronunciations": ["どうか"], | |
"set": "基本", | |
"cost": { | |
"coin": "0", | |
"potion": null, | |
"debt": 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
<?php | |
namespace App\Http\Middleware; | |
use Illuminate\Foundation\Http\Middleware\TransformsRequest; | |
class TransformStringBooleans extends TransformsRequest | |
{ | |
/** | |
* Transform the given value. |
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
$order = 'table_name.column.desc'; | |
list($direction, $column) = array_map( | |
'strrev', | |
explode('.', strrev($order), 2) | |
); | |
echo $direction; // "desc" | |
echo $column; // "table_name.column" |
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
<template> | |
<div v-auto-link> | |
{{item.tweet}} | |
</div> | |
</template> | |
<script> | |
export default { | |
data: () => ({ | |
item: { |
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
[webservers] | |
localhost ansible_connection=docker ansible_host=ubuntu ansible_user=root | |
[mysqlservers] | |
localhost ansible_connection=docker ansible_host=ubuntu ansible_user=root | |
[queueservers] | |
localhost ansible_connection=docker ansible_host=ubuntu ansible_user=root |
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
[ | |
{ | |
data: [{ x: 1, y: 2 }, { x: 3, y: 4 }] | |
}, | |
{ | |
data: [{ x: 5, y: 6 }, { x: 7, y: 8 }] | |
} | |
].map(({ data }) => data).reduce((acc, cur, i, arr) => { | |
acc.push(cur.map(({x, y}) => ({ [`x${i}`]: x, [`y${i}`]: y }))) | |
return acc |
NewerOlder