Skip to content

Instantly share code, notes, and snippets.

@ikedaosushi
ikedaosushi / slack-analytics.ipynb
Created December 21, 2018 10:36
Slackデータを可視化して会社の2018年を振り返る
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@W-Yoshida
W-Yoshida / 0_README.md
Last active January 7, 2020 07:48
ガルーンからGoogleカレンダーに予定を移行するRubyプログラム
@uribo
uribo / jp_chome_boundary.R
Created July 14, 2017 00:08
国勢調査 小地域 Shapefileのダウンロード
library(RSelenium)
library(sf)
library(leaflet)
select_pref <- function(target) {
jpndistrict::jpnprefs %>%
dplyr::select(code = jis_code, pref = prefecture) %>%
dplyr::filter(code == target | pref == target)
}
select_city <- function(ch_elm = childElems3, target = NULL) {
@okkez
okkez / Gemfile
Created November 28, 2016 08:27
Benchmark for libmaxmind bindings
source "https://rubygems.org"
gem "maxmind_geoip2"
gem "maxminddb"
gem "hive_geoip2"
gem "geoip2_compat"
gem "geoip-c", require: "geoip"
@danielnorberg
danielnorberg / acl.yml
Last active June 11, 2018 05:06
Digdag secrets
# System secret ACL policy
---
acl:
operators:
# TD
td:
secrets:
- td.*
td_load:
secrets:

First of all, make sure that your Treasure Data cluster is HDP2, not CDH4. Matrix Factorization is only supported in the up-to-date HDP2 cluster. HDP2 is allocated for users who signed Treasure Data after Feb 2015. CDH4 is allcoated for the others.

NOTE: please ask our customer support to use HDP2 if you get an error.

Data preparation

Download ml-20m.zip and unzip it.

@sonots
sonots / v1-config-array.md
Created November 21, 2014 15:52
ただのメモ。fluentd v1 config の array, hash 処理は config_param でやればいいのでは? => 改行を扱いたいのであった
@gunyarakun
gunyarakun / dvd_copy.rb
Created October 23, 2014 01:33
Make DVD ISO image sequentially
#!/usr/bin/env ruby
require 'date'
HDD_PATH = '/Volumes/HFS_disks_from_japan/mushu_avs'
while true do
d = DateTime.now
status = `drutil status`
if status =~ /^\s+Type: [-A-Z]+\s+Name: (.+)$/
@ambakshi
ambakshi / iam-assume-role.sh
Last active October 25, 2021 15:50
Assume an IAM role. An interesting way of doing IAM roles is to give the instance permissions to assume another role, but no actual permissions by default. I got this idea while setting up security monkey: http://securitymonkey.readthedocs.org/en/latest/quickstart1.html#setup-iam-roles.
#!/bin/bash
#
# Assume the given role, and print out a set of environment variables
# for use with aws cli.
#
# To use:
#
# $ eval $(./iam-assume-role.sh)
#