Skip to content

Instantly share code, notes, and snippets.

View takurx's full-sized avatar

Yoshihiro Nakagawa takurx

View GitHub Profile
@takurx
takurx / firefox-p.sh
Created February 21, 2015 09:56
MacでFirefoxでのアカウントの切り替え ref: http://qiita.com/takurx/items/319c35b7855ad8c31f6f
#select account on firefox
cd /Applications/Firefox.app/Contents/MacOS/
./firefox-bin -p &
@takurx
takurx / .bashrc
Last active August 29, 2015 14:15
MacでのGo言語のインストール ref: http://qiita.com/takurx/items/c6a5a294a89cdca29c30
# for Golang
export GOROOT=$HOME/go
export GOARCH=amd64
export GOOS=darwin
export GOBIN=$HOME/go/bin
export GOPATH=$HOME/_go
export PATH=$PATH:$GOROOT/bin:$GOPATH/bin:$GOBIN
@takurx
takurx / .gitignore
Created April 14, 2016 07:40 — forked from ganezasan/.gitignore
d3 Animation Image
.DS_Store
#include <SoftwareSerial.h>
// 2:RX,3:TXでシリアル通信する宣言
SoftwareSerial mySerial(2, 3);
long int Tido = 35431721;
long int Tkeido = 139317210;
String inputString = "";
String Data[16];
int latchPin = 3; // 74HC595のST_CPへ
int clockPin = 4; // 74HC595のSH_CPへ
int dataPin = 2; // 74HC595のDSへ
unsigned int val;
unsigned int j;
unsigned int k;
void setup() {
pinMode(latchPin, OUTPUT);
pinMode(clockPin, OUTPUT);
@takurx
takurx / search.py
Created December 31, 2017 06:41
file open, find string and print(standard output)
#!/usr/bin/python
f = open('./Bookmarks.txt')
line = f.readline()
while line:
# print(line)
if line.find('url":') > 0:
print(line)
@takurx
takurx / in_console_hello.cs
Last active January 22, 2019 07:20
"hello world" on user code of Ranorex
//In console "hello world" on user code of Ranorex
//ref.1 https://docs.microsoft.com/ja-jp/dotnet/csharp/programming-guide/inside-a-program/hello-world-your-first-program
//ref.2 https://www.wareko.jp/blog/post-20367
//ref.3 http://bignight.hatenablog.com/entry/2015/01/14/191931
//ref.4 https://stackoverflow.com/questions/15604014/no-console-output-when-using-allocconsole-and-target-architecture-x86
//ref.5 https://msdn.microsoft.com/ja-jp/library/system.io.textwriter(v=vs.110).aspx
//ref.6 https://www.ranorex.com/help/latest/lesson-7-code-modules
///////////////////////////////////////////////////////////////////////////////
//
@takurx
takurx / copy_sheet2sheet.vba
Created April 13, 2018 00:37
copy to sheet2 from sheet1
Sub copy_sheet2sheet()
'
' copy_sheet2sheet Macro
' copy to sheet2 from sheet1
'
Application.Goto Reference:="copy_sheet2sheet"
Dim i As Integer
Dim j As Integer
Dim col_start As Integer
@takurx
takurx / index.html
Created May 6, 2018 11:51
tweetボタンを画像表示にするのにscriptタグの行が必要だった
<html>
<title>Hello, tomorinao</title>
<body>
<p>Tomorinao works!</p>
<p>
<a class="twitter-share-button" href="https://twitter.com/intent/tweet?text=Hello,%20tomorinao">Tweet</a>
<script async src="https://platform.twitter.com/widgets.js" charset="utf-8"></script>
</p>
<body>
</html>
@takurx
takurx / hello, random number
Created May 14, 2018 04:36
hello, random number
<html>
<head>
<title>PHP Test</title>
</head>
<body>
<?php
$a = 2;
echo '<p>Hello World utf-8</p>';
echo '<p>';
echo $a;