Skip to content

Instantly share code, notes, and snippets.

FURUKAWA,Daisuke mogya

Block or report user

Report or block mogya

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
mogya / CircularLED.cpp
Last active Mar 5, 2017 をNefryで動かすためにトライ中のコード。Wikiに上がっていたサンプルから、unsigned int をuint32_tに変更、CircularLED.inoはNefryで動くように関数を変えたり、ポートを変更したりしたものです。
View CircularLED.cpp
2012 Copyright (c) Seeed Technology Inc.
Author: LG
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.
mogya / docker-compose.yml
Last active Nov 11, 2018
start jordan/rundeck with JST timezone.
View docker-compose.yml
version: '2'
image: alpine:latest
entrypoint: /bin/true
- ./etc/rundeck:/etc/rundeck
- ./var/rundeck:/var/rundeck
- ./var/lib/rundeck/.ssh:/var/lib/rundeck/.ssh
- ./var/lib/rundeck/logs:/var/lib/rundeck/logs
mogya / wget_scraper.rb
Created Feb 24, 2016
View wget_scraper.rb
# -*- encoding: utf-8 -*-
require 'lib/scraper.rb'
require "uri"
require "kconv"
class WgetScraper < Scraper
include DebugLog
CACHE_DIR = '/tmp/WgetScraper/'
COOKIE_FILE = '/tmp/WgetScraper/cookie.txt'
mogya / gist:77bacad211389f739a3d
Last active Aug 31, 2017 — forked from kennyj/gist:4966002
View gist:77bacad211389f739a3d
# encoding: utf-8
module TelSplitter
MAP = {
# 市外局番 , 市内局番の桁数のマップ
# のデータを利用
# 固定電話以外の桁数は適当です...
'050' => 4, # IP電話
'070' => 4, # 携帯電話/PHS
'080' => 4, # 携帯電話
View gist:b2e49120b3f98a0cb8ae
mogya / file0.txt
Last active Aug 29, 2015
spotlightでsleepできるようにする ref:
View file0.txt
$ emacs ~/bin/sleep
tell application "Finder" to sleep
mogya / main.css
Last active Aug 29, 2015
View main.css
#main li:nth-of-type(3n),
#main li:nth-of-type(5n){
visibility: hidden;
#main li:nth-of-type(3n):before,
#main li:nth-of-type(5n):before,
#main li:nth-of-type(15n):before{
visibility: visible;
display: inline;
View test_with_saucelab.rb
#!/usr/bin/env ruby
require 'rubygems'
require 'selenium-webdriver'
caps = Selenium::WebDriver::Remote::Capabilities.iphone
caps.version = "5.0"
caps.platform = :MAC
caps[:name] = "Testing Selenium 2 with Ruby on Sauce"
View saucelabsTestCase.rb
# -*- encoding: utf-8 -*-
require "rubygems"
require "selenium-webdriver"
require "test/unit"
module HtmlTestSuppeter
def element_present?(how, what)
@driver.find_element(how, what)
rescue Selenium::WebDriver::Error::NoSuchElementError
View app.js
Window = require('map_view');
var win = new Window({
You can’t perform that action at this time.