Skip to content

Instantly share code, notes, and snippets.

View dnpp73's full-sized avatar

Yusuke SUGAMIYA dnpp73

View GitHub Profile
@sugyan
sugyan / fizzbuzz.pl
Last active September 21, 2023 08:49
"^ "
=~ (
("(").("~"^"."^"^"^(""=="")."").("^"
^"="^(""=="").""^")").("^"^".").("="
^"~"^(""=="")."").("("^(""=="^").""^
"."^"^").("("^(""=="").""^"^"^")").(
(" ^( "
== "
") .
"" ^
@gwire
gwire / en-decrypt.py
Last active August 2, 2023 06:42
Decrypt password protected notes exported from Evernote (ENEX)
#!/usr/bin/env python
# Python script to decrypt encrypted ENEX notes exported from Evernote as ENEX
#
# This will onle work on notes encypted after 2014 using the "ENC0" format
#
# This script requires a modified version of pbkdf2.py to support SHA256
# https://github.com/PaulUithol/python-pbkdf2
#
# There's no helpful error if your password was incorrect, it will just
@rummelonp
rummelonp / 0-yoru_fukurou_list_sync.md
Created December 20, 2012 17:10
Twitter Lists から YoruFukurou の抽出タブを同期するスクリプト書いた

Twitter Lists から YoruFukurou の抽出タブを同期するスクリプト書いた

なんでわざわざ抽出タブ作ってるか理由を説明するのは面倒くさいから省く
ただリストから抽出タブを作ってる人は他にもいるみたいでどうにか自動化出来ないかなと書いてみた

前提条件

  • Mac 使ってる
  • YoruFukurou 使ってる
  • Ruby が入ってる
@rummelonp
rummelonp / faraday.md
Last active May 20, 2022 12:23
Ruby の HTTP クライアントライブラリ Faraday が便利そう

Ruby の HTTP クライアントライブラリ Faraday が便利そう

Ruby の HTTP クライアントライブラリ Faraday が便利そう

API ラッパの開発には [RestClient gem][rest_client_gem] だとか
OAuth の必要なものは [Net/HTTP][net_http] + [OAuth gem][oauth_gem] を使ってた

[Twitter gem][twitter_gem] や [Instagram gem][instagram_gem] など API ライブラリのソースを読んでみると
[Faraday gem][faraday_gem] というものがよく使われてた

@mala
mala / covid19-twitter-research_01.md
Last active December 31, 2021 05:58
生活と意見: ソーシャルディスタンスなどと称してユーザー名や文章にスペースを挟む行為についての苦情

生活と意見: ソーシャルディスタンスなどと称してユーザー名や文章にスペースを挟む行為についての苦情

更新履歴

2020-05-13 追記

@rummelonp
rummelonp / op.py
Created February 29, 2012 07:12
いかにしておっぱい画像をダウンロードするか〜2012 for Python
# -*- coding: utf-8 -*-
import os.path, re, hashlib, urllib, json
appid = ''
uri = 'http://api.bing.net/json.aspx'
dir = './data'
page_count = 0
download_count = 0
@novi
novi / swift-arm-on-archlinux-rpi2.md
Last active February 8, 2017 04:11
Install Swift ARM on ArchLinux(Raspberry Pi2)

Install debootstrap.

# pacman -S arch-install-scripts debootstrap

Install Debian base system into $ROOTFS.

$ export ROOTFS=$HOME/rootfs
@novi
novi / gist:1486247
Created December 16, 2011 14:31
オレオレCocoaコーディングガイドライン
@naonya3
naonya3 / masakari.md
Created October 17, 2016 09:11
iOS10でのAPNSの知見です

アプリを起動してない状態からPush通知から起動

UNUserNotificationCenterDelegateの

userNotificationCenter(center: UNUserNotificationCenter, didReceiveNotificationResponse response: UNNotificationResponse, withCompletionHandler completionHandler: () -> Void)

を実装居ている場合は上記が呼ばれ、実装していない場合は

AppDelegateの

require 'twitter'
client = Twitter::REST::Client.new do |config|
config.consumer_key = "YOUR_CONSUMER_KEY"
config.consumer_secret = "YOUR_CONSUMER_SECRET"
config.access_token = "YOUR_ACCESS_TOKEN"
config.access_token_secret = "YOUR_ACCESS_SECRET"
end
print "screen_name: "