Skip to content

Instantly share code, notes, and snippets.

View kymmt90's full-sized avatar

Kōhei Yamamoto kymmt90

View GitHub Profile
@kymmt90
kymmt90 / get_access_token.rb
Created September 22, 2015 04:37
Get Hatena OAuth access token from Ruby
#!/usr/bin/env ruby
# coding: utf-8
# The MIT License (MIT)
# Copyright (c) 2015 Kohei Yamamoto
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
@kymmt90
kymmt90 / Cask
Created March 30, 2015 13:20
Cask sample
(source gnu)
(source melpa)
(depends-on "redo+")
(depends-on "migemo")
(depends-on "auto-complete")
(depends-on "yasnippet")
(depends-on "helm")
import java.io.File;
import java.util.List;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.core.type.TypeReference;
import com.fasterxml.jackson.databind.ObjectMapper;
public class Books {
public static void main(String[] args) throws Exception {
import java.io.File;
import java.io.IOException;
import com.fasterxml.jackson.databind.JsonNode;
import com.fasterxml.jackson.databind.ObjectMapper;
public class Jackson {
public static void main(String[] args) {
try {
ObjectMapper mapper = new ObjectMapper();