- 近藤うちお
- paperboy&co. 技術基盤チーム
- ルビーとかを少し書けます
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/env ruby | |
# -*- coding: utf-8 -*- | |
# 接続中のWiFiのSSIDからインターネットにチェックインするやつ | |
ssid = `/System/Library/PrivateFrameworks/Apple80211.framework/Versions/Current/Resources/airport -I`.split(/\n/).find{|line| line =~ /\bSSID/ }.scan(/SSID: (.+)$/).flatten.first | |
system "open 'http://t.heinter.net/#{ ssid }'" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
やわらかRubyはCC BY 4.0 で提供します。 | |
詳細: https://creativecommons.org/licenses/by/4.0/deed.ja | |
This work is licensed under a Creative Commons Attribution 4.0 International License. | |
See also: https://creativecommons.org/licenses/by/4.0/deed |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@mixin stack-classes ($classes) { | |
$i: 10; | |
@each $class in $classes { | |
.#{$class} { | |
z-index: $i; | |
$i: $i + 10; | |
} | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'formula' | |
# Documentation: https://github.com/mxcl/homebrew/wiki/Formula-Cookbook | |
# /usr/local/Library/Contributions/example-formula.rb | |
# PLEASE REMOVE ALL GENERATED COMMENTS BEFORE SUBMITTING YOUR PULL REQUEST! | |
class TheLegacySearcher < Formula | |
homepage '' | |
url 'https://github.com/monochromegane/the_silver_searcher/archive/legacy-0.1.tar.gz' | |
sha1 '9608f10564c64081a38a345ee6848c570a0266f9' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
hippo-password-strength の master の最新の変更を取り込んでPRする。 | |
(すでにPR出している場合) | |
``` | |
git remote add upstream [email protected]:kurotaky/hippo-password-strength.git | |
git checkout master | |
git pull upstream master | |
git checkout using-img-src | |
git rebase master using-img-src | |
git push -f origin using-img-src |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
using System.Collections; | |
using System.Linq; | |
using System.Collections.Generic; | |
using System; | |
public class AcitiveRecord<T> where T : IDataAccessObject, new() | |
{ | |
static protected MyDatabase db; |