Skip to content

Instantly share code, notes, and snippets.

ハトネコエ nekonenene

Block or report user

Report or block nekonenene

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@nekonenene
nekonenene / SoundManager.cs
Created May 23, 2019
オーディオのフェードイン・フェードアウト:DOTween 使用(ブログ公開用)
View SoundManager.cs
using System;
using System.Collections;
using UnityEngine;
using UnityEngine.Audio;
using DG.Tweening;
// Singleton として持ち続ける
public class SoundManager : MonoBehaviour {
static SoundManager instance;
@nekonenene
nekonenene / SoundManager.cs
Last active May 23, 2019
オーディオのフェードイン・フェードアウトを DOTween を使わずに実装する(ブログ公開用)
View SoundManager.cs
using System;
using System.Collections;
using UnityEngine;
using UnityEngine.Audio;
// Singleton として持ち続ける
public class SoundManager : MonoBehaviour {
static SoundManager instance;
public AudioMixerGroup BGMMixerGroup;
@nekonenene
nekonenene / Fade.cs
Last active May 23, 2019
Unity uGUI のフェードアウト処理(ブログ公開用) https://nekonenene.hatenablog.com/entry/unity-ugui-fadeout-window
View Fade.cs
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 / config.yml
Last active May 23, 2019
Android アプリを deploygate にデプロイする CircleCI 2.0 設定(ブログ公開用) https://nekonenene.hatenablog.com/entry/circleci_2-deploygate-android
View config.yml
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
View client02.go
package main
import (
"context"
"go/build"
"log"
"os"
"strconv"
"time"
@nekonenene
nekonenene / client01.go
Last active May 23, 2019
Client for my gRPC server(ブログ公開用) https://nekonenene.hatenablog.com/entry/grpc-nginx-proxy
View client01.go
package main
import (
"context"
"crypto/tls"
"log"
"os"
"strconv"
"time"
@nekonenene
nekonenene / main.yml
Last active Jan 27, 2019
Ansible role for install and start Docker
View main.yml
- name: install dependencies
become: true
become_user: root
apt:
name:
- apt-transport-https
- ca-certificates
- curl
- gnupg2
- software-properties-common
@nekonenene
nekonenene / config.yml
Last active May 23, 2019
CircleCI 2.0 で gh-pages にビルドしたものだけを push (ブログ公開用) https://nekonenene.hatenablog.com/entry/2018/08/21/052420
View config.yml
# Ref: https://circleci.com/docs/2.0/deployment-integrations/
version: 2
jobs:
build: # runs not using Workflows must have a `build` job as entry point
working_directory: ~/repo
docker:
- image: circleci/node:8 # 8系がLTSなので使用
steps:
- checkout # special step to check out source code to working directory
- run:
@nekonenene
nekonenene / update_proxy.sh
Last active Aug 7, 2018
ブログ公開用
View update_proxy.sh
#!/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 / kizuna_bot_for_blog.rb
Last active Jul 23, 2019
Discord bot。 gem install discordrb が必要(ブログ公開用) https://nekonenene.hatenablog.com/entry/2018/07/19/061201
View kizuna_bot_for_blog.rb
require "discordrb"
require "net/http"
require "uri"
require "json"
# dotenv を使用する場合はここのコメントを解除します(※ gem install dotenv が必要)
# require "dotenv"
# Dotenv.load
class KizunaBot
You can’t perform that action at this time.