Skip to content

Instantly share code, notes, and snippets.

@lunaluna
lunaluna / Preferences.sublime-setting
Last active January 26, 2018 06:30
【Sublime Text3】Preferences.sublime-setting for ST3
{
"afn_insert_width_first": true,
"afn_template_languages": true,
"auto_close_tags": true,
"auto_complete": true,
"auto_complete_commit_on_tab": true,
"auto_complete_delay": 50,
"auto_complete_size_limit": 4194304,
"auto_indent": true,
"auto_match_enabled": true,
@lunaluna
lunaluna / Package Control.sublime-setting
Last active August 29, 2015 14:11
【Sublime Text3】Package Control.sublime-setting for ST3
{
"in_process_packages":
[
],
"installed_packages":
[
"4GL",
"ACF Snippets",
"Alignment",
"All Autocomplete",
@lunaluna
lunaluna / package.json
Created February 11, 2015 16:37
Browser-sync 2.0.1 demo package.json
{
"name": "bs.2.0.1-sample",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"start": "browser-sync start --server --files='./*.html, ./*.css'",
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "",
@lunaluna
lunaluna / .gitignore
Created January 9, 2016 06:36 — forked from salcode/.gitignore
.gitignore file for WordPress - Bare Minimum Git
# -----------------------------------------------------------------
# .gitignore for WordPress
# Bare Minimum Git
# http://ironco.de/bare-minimum-git/
# ver 20150227
#
# This file is tailored for a WordPress project
# using the default directory structure
#
# This file specifies intentionally untracked files to ignore
@lunaluna
lunaluna / default.html
Last active January 18, 2016 18:40
foundation for sites 6 - source/layouts/default.html
{{!-- This is the base layout for your project, and will be used on every page. --}}
<!doctype html>
<html class="no-js" lang="en">
<head>
<meta charset="utf-8" />
<meta http-equiv="x-ua-compatible" content="ie=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Foundation for Sites</title>
<link rel="stylesheet" href="{{root}}assets/css/app.css">
@lunaluna
lunaluna / Monokai Extended Bright Modified.tmTheme
Last active March 6, 2017 00:45
【sublime text】Monokai Extended Bright Modified.tmTheme
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>name</key>
<string>Monokai Extended Bright Modified</string>
<key>settings</key>
<array>
<dict>
<key>settings</key>
@lunaluna
lunaluna / index.html
Last active April 18, 2016 00:41
index.html snippet
<!DOCTYPE html>
<html lang="ja">
<head>
<meta charset="utf-8">
<title></title>
</head>
<body>
</body>
@lunaluna
lunaluna / index.php
Created April 18, 2016 00:42
index.php snippet
<!DOCTYPE html>
<html lang="ja">
<head>
<meta charset="utf-8">
<title></title>
</head>
<body>
</body>
@lunaluna
lunaluna / gist:8dce0d90af9677078a89c1d886d345e2
Last active October 4, 2017 02:04
【WordPress】Jetpackを有効化しているサイトをクローンしてテスト環境を作るときにwp-config.phpに記述すべき設定
<?php
define( 'JETPACK_STAGING_MODE', true );
@lunaluna
lunaluna / functions.php
Created August 31, 2017 06:15
【WordPress】ダッシュボードのウェルカムスクリーン(ようこそ)をデフォルトで非表示にする
function hide_welcome_panel() {
$user_id = get_current_user_id();
if ( 1 == get_user_meta( $user_id, 'show_welcome_panel', true ) ) {
update_user_meta( $user_id, 'show_welcome_panel', 0 );
}
}
add_action( 'load-index.php', 'hide_welcome_panel' );