Skip to content

Instantly share code, notes, and snippets.

Avatar

Taro Furuya taross-f

View GitHub Profile
@ServerlessBot
ServerlessBot / IAMCredentials.json
Last active February 2, 2023 17:51
Minimum credential set for Serverless Framework
View IAMCredentials.json
{
"Statement": [
{
"Action": [
"apigateway:*",
"cloudformation:CancelUpdateStack",
"cloudformation:ContinueUpdateRollback",
"cloudformation:CreateChangeSet",
"cloudformation:CreateStack",
"cloudformation:CreateUploadBucket",
@templateaholic10
templateaholic10 / wlan_boot_connect.md
Last active March 13, 2020 09:39
Ubuntu 16.04の起動時に無線lan接続する
View wlan_boot_connect.md

準備

普通に接続して

  • SSIDとパスフレーズ
  • ifconfigでネットワークアダプタ(wlan2s0
  • [接続情報]でIPv4のIPアドレス、サブネットマスク、デフォルトルート、Primary DNS

を確認しておく。

View Hello.vue
<template>
<p>{{ greeting }} World!</p>
</template>
<script>
module.exports = {
data: function () {
return {
greeting: 'Hello'
}
@voluntas
voluntas / django_redo.rst
Last active February 26, 2019 14:46
Django ヤリナオシ
View django_redo.rst

Django ヤリナオシ

日時:2018-04-09
作:@voluntas
バージョン:18.4.3
URL:https://voluntas.github.io/

突っ込みは Twitter @voluntas まで。

@glueckpress
glueckpress / GitHub-Desktop-Bitbucket.md
Last active April 26, 2022 14:53
[How-to] Use GitHub Desktop to clone and commit to a Bitbucket repository just as you would with any GitHub repository. (Mac)
View GitHub-Desktop-Bitbucket.md

⚠️ Note: this guide is from 2016 – a long time on the internet. Content may be outdated, check the comments for more recent info.


Clone Bitbucket Repository and Add it to GitHub Desktop App (Mac)

You can’t clone a Bitbucket repo using GithHub Desktop directly. Instead you would have to:

  1. Clone the Bitbucket repo locally via command line.
  2. Add the cloned repository to your GitHub Desktop app.
View FindInterface.cs
using UnityEngine;
using System.Collections;
using UnityEngine.EventSystems;
using System;
public static class FindInterface {
public static void DoParentEventSystemHandler<T>(this Transform self, Action<T> action) where T:IEventSystemHandler
{
Transform parent = self.transform.parent;
while(parent != null) {
@tsubaki
tsubaki / SingletonMonoBehaviour.cs
Last active August 13, 2021 12:45
旧シングルトンの改良版。初回起動時にインスタンスが登録されていなければ自身を登録する
View SingletonMonoBehaviour.cs
using UnityEngine;
using System.Collections;
public class SingletonMonoBehaviour<T> : MonoBehaviour where T : SingletonMonoBehaviour<T>
{
protected static T instance;
public static T Instance {
get {
if (instance == null) {
instance = (T)FindObjectOfType (typeof(T));
@equivalentideas
equivalentideas / share-links-jekyll
Last active October 14, 2018 21:57
Social media share links for Jekyll/Liquid. Add these into a Jekyll layout to produce social media share links using that page's url and description.
View share-links-jekyll
@darktable
darktable / MiniJSON.cs
Created November 30, 2011 23:08
Unity3D: MiniJSON Decodes and encodes simple JSON strings. Not intended for use with massive JSON strings, probably < 32k preferred. Handy for parsing JSON from inside Unity3d.
View MiniJSON.cs
/*
* Copyright (c) 2013 Calvin Rien
*
* Based on the JSON parser by Patrick van Bergen
* http://techblog.procurios.nl/k/618/news/view/14605/14863/How-do-I-write-my-own-parser-for-JSON.html
*
* Simplified it so that it doesn't throw exceptions
* and can be used in Unity iPhone with maximum code stripping.
*
* Permission is hereby granted, free of charge, to any person obtaining