Skip to content

Instantly share code, notes, and snippets.

View nekonenene's full-sized avatar

ハトネコエ nekonenene

View GitHub Profile
@nekonenene
nekonenene / config.yml
Last active May 23, 2019 19:44
Android アプリを deploygate にデプロイする CircleCI 2.0 設定(ブログ公開用) https://nekonenene.hatenablog.com/entry/circleci_2-deploygate-android
aliases:
android_docker: &android_docker
docker:
- image: circleci/android:api-28
environment:
TZ: Asia/Tokyo
steps:
- restore_cache: &restore_cache
key: &jars_key jars-{{ checksum "build.gradle.kts" }}-{{ checksum "app/build.gradle.kts" }}
- run: &download_deps
@nekonenene
nekonenene / Fade.cs
Last active May 23, 2019 19:43
Unity uGUI のフェードアウト処理(ブログ公開用) https://nekonenene.hatenablog.com/entry/unity-ugui-fadeout-window
using System.Collections;
using UnityEngine;
using UnityEngine.EventSystems;
using UnityEngine.UI;
namespace Util {
public static class Fade {
public static void FadeoutObject(GameObject gameObject, float fadeoutSec = 2.0f) {
if (gameObject.GetComponent<Fadeout>()) return;
@nekonenene
nekonenene / SoundManager.cs
Last active May 23, 2019 19:41
オーディオのフェードイン・フェードアウトを DOTween を使わずに実装する(ブログ公開用)
using System;
using System.Collections;
using UnityEngine;
using UnityEngine.Audio;
// Singleton として持ち続ける
public class SoundManager : MonoBehaviour {
static SoundManager instance;
public AudioMixerGroup BGMMixerGroup;
@nekonenene
nekonenene / SoundManager.cs
Created May 23, 2019 19:40
オーディオのフェードイン・フェードアウト:DOTween 使用(ブログ公開用)
using System;
using System.Collections;
using UnityEngine;
using UnityEngine.Audio;
using DG.Tweening;
// Singleton として持ち続ける
public class SoundManager : MonoBehaviour {
static SoundManager instance;
@nekonenene
nekonenene / main.yml
Last active January 27, 2019 13:54
Ansible role for install and start Docker
- name: install dependencies
become: true
become_user: root
apt:
name:
- apt-transport-https
- ca-certificates
- curl
- gnupg2
- software-properties-common
@nekonenene
nekonenene / update_proxy.sh
Last active August 7, 2018 02:05
ブログ公開用
#!/bin/bash
# $1: Update proxies to this ip
# $2: Update no_proxy to this ip list
function update_proxy() {
local proxy_ip="$1"
local no_proxy_list="$2"
if [ "$proxy_ip" = "" ] ; then
unset http_proxy
@nekonenene
nekonenene / null.js
Created October 21, 2017 15:31
JavaScriptでのnullっぽい値の処理
var zero = 0;
var nullString = "";
var nullValue = null;
var undefinedValue = undefined;
var nanValue = NaN;
console.log("## xxx.toString");
console.log(zero + ", " + nullString + ", " + nullValue + ", " + undefinedValue + ", " + nanValue);
console.log("## ! xxx");
@nekonenene
nekonenene / using.rb
Last active July 21, 2017 02:42
refine / using で安全にオブジェクトへメソッド追加
module StringExtend
refine String do
def reverse
"aaa"
end
end
end
module TestModule
def output_from_module
@nekonenene
nekonenene / .bashrc
Last active January 28, 2017 17:54
ブログ公開用データ: .bashrc も .zshrc も同じ設定でOK
alias emacs='open -a Emacs.app -n' # -a は Application を開くのに必要な宣言。 -n は new Window の n
alias iterm='open -a iTerm.app -n' # 律儀に .app まで書いてますが、 'open -a iterm' でも大丈夫です
alias firefox='open -a Firefox.app --background'
alias chrome='open -a "Google Chrome.app" --background'
alias safari='open -a Safari.app --background'
alias opera='open -a Opera.app --background'
alias vim='open -a MacVim.app -n'
alias xcode='open -a Xcode.app'
alias tedit='open -e' # TextEdit というMac標準のエディタが開きます
@nekonenene
nekonenene / Dockerfile
Last active October 25, 2016 13:47
最新の node, npm を入れる
FROM ubuntu:trusty
LABEL Description="latest npm" Vendor="nekonenene" Version="1.0"
## 文字コード設定
RUN locale-gen ja_JP.UTF-8
ENV LANG ja_JP.UTF-8
ENV LANGUAGE ja_JP:ja
ENV LC_ALL ja_JP.UTF-8