Skip to content

Instantly share code, notes, and snippets.

View junichi11's full-sized avatar
🇯🇵

Junichi Yamamoto junichi11

🇯🇵
View GitHub Profile
@nojimage
nojimage / NetBeansSuite.php
Created March 17, 2012 05:22
NetBeansからでもCakePHP2のFixtureを読み込むためのNetBeansSuite魔改造
<?php
/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
*
* Copyright 2010 Oracle and/or its affiliates. All rights reserved.
*
* Oracle and Java are registered trademarks of Oracle and/or its affiliates.
* Other names may be trademarks of their respective owners.
*
* The contents of this file are subject to the terms of either the GNU
@theconektd
theconektd / github.css
Created April 30, 2012 02:11
Github Markdown CSS - for Markdown Editor Preview
body {
font-family: Helvetica, arial, sans-serif;
font-size: 14px;
line-height: 1.6;
padding-top: 10px;
padding-bottom: 10px;
background-color: white;
padding: 30px; }
body > *:first-child {
@nojimage
nojimage / bake-composer.sh
Last active December 25, 2015 18:49
ComposerでインストールしたCakePHPからプロジェクトを生成して、CAKE_CORE_INCLUDE_PATHの相対パス化とautoloaderの読込み。
#!/usr/bin/env bash
Vendor/bin/cake bake project --empty -v app
# replace include_path
replace="s/define('CAKE_CORE_INCLUDE_PATH',.*$/define('CAKE_CORE_INCLUDE_PATH', ROOT . DS . 'Vendor' . DS . 'cakephp' . DS . 'cakephp' . DS . 'lib');/"
sed -i .orig -e "$replace" app/webroot/index.php app/webroot/test.php
## # replace console path, if CakePHP < 2.5
@nojimage
nojimage / phpunit.php
Last active December 29, 2015 10:19
netbeans custom phpunit script
#!/usr/bin/env php
<?php
$paths = array(
PHP_BINDIR,
'/usr/local/phpenv/shims',
getenv('PATH')
);
putenv('PATH=' . join(PATH_SEPARATOR, $paths));
array_shift($argv);
@wokamoto
wokamoto / gist:8841077
Last active August 12, 2017 00:44
[WordPress][Backlog API] CF7 to Backlog
<?php
/*
Plugin Name: WP CF7 to Backlog
Plugin URI:
Description:
Author: wokamoto
Version: 0.0.1
*/
include_once( ABSPATH . WPINC . '/class-IXR.php' );
@nojimage
nojimage / phpunit.sh
Last active August 29, 2015 13:57
Custom phpunit script for NetBeans 8.0
#!/usr/bin/env bash
export PATH="$HOME/.phpenv/bin:/opt/local/bin:$PATH"
eval "$(phpenv init -)"
args=""
while [ "$1" != "" ] ; do
arg=$1
if [[ $arg =~ NetBeansSuite.php && -f $(pwd)/nbproject/NetBeansSuite.php ]] ; then
# Change custom NetBeansSuite path
arg=$(pwd)/nbproject/NetBeansSuite.php
@nojimage
nojimage / phpunit-for-cakephp.sh
Last active August 29, 2015 14:02
Custom PHPUnit script for CakePHP on NetBaeans 8.0
#!/usr/bin/env bash
##
#
# Custom PHPUnit script for CakePHP on NetBaeans 8.0
#
# @author Takashi Nojima [http://php-tips.com]
# @copyright 2014 Takashi Nojima
##
PROJECT_ROOT=$(cd "$(dirname "$(dirname "$0")")" && pwd)
@lukas-h
lukas-h / license-badges.md
Last active November 11, 2024 03:22
Markdown License Badges for your Project

Markdown License badges

Collection of License badges for your Project's README file.
This list includes the most common open source and open data licenses.
Easily copy and paste the code under the badges into your Markdown files.

Notes

  • The badges do not fully replace the license informations for your projects, they are only emblems for the README, that the user can see the License at first glance.

Translations: (No guarantee that the translations are up-to-date)

@kazuho
kazuho / git-blame-pr.pl
Last active June 28, 2022 07:15
git-blame by PR #
#! /usr/bin/perl
#
# Written in 2017 by Kazuho Oku
#
# To the extent possible under law, the author(s) have dedicated all copyright and related and neighboring rights to this software to the public domain worldwide. This software is distributed without any warranty.
# You should have received a copy of the CC0 Public Domain Dedication along with this software. If not, see <http://creativecommons.org/publicdomain/zero/1.0/>.
#
use strict;
use warnings;
@mtei
mtei / helix_keyboard_build_tool_memo.md
Last active August 24, 2023 08:19
キーボード自作、特に Helix キーボードキットの製作に最低必要な工具のメモ