[ Launch: circle-animation ] 7328929 by tanatana
This file contains 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 python3 | |
import argparse | |
import time | |
from CO2Meter import * | |
parser = argparse.ArgumentParser() | |
parser.add_argument("--local", default="___") | |
parser.add_argument("--path") | |
args = parser.parse_args() |
This file contains 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
#include "ergodox_ez.h" | |
#include "debug.h" | |
#include "action_layer.h" | |
#define BASE 0 // default layer | |
#define SYMB 1 // symbols | |
#define MDIA 2 // media keys | |
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | |
/* Keymap 0: Basic layer |
This file contains 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
package main | |
import( | |
"fmt" | |
"reflect" | |
) | |
func main() { | |
var hp, cp, wp, crp Printer | |
hp = NewHelloPrinter() |
This file contains 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
javascript:(function(){ | |
var editorBaseURL = "http://blog.hatena.ne.jp/my/edit?"; | |
var title = document.getElementsByClassName('entry-title-link')[0].textContent; | |
var entryURL = document.getElementsByClassName('entry-title-link')[0].href; | |
location.href = editorBaseURL + "title=" + encodeURIComponent(title + "の感想") + "&;body=" + encodeURIComponent("[" + entryURL + ":embed]\n[" + entryURL + ":title]"); | |
})() |
This file contains 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
<!DOCTYPE html> | |
<html lang="ja"> | |
<head> | |
<meta charset="utf-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<title>canvas problem with iOS7.1 on HDPI device</title> | |
<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries --> | |
<!-- WARNING: Respond.js doesn't work if you view the page via file:// --> |
This file contains 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
<!DOCTYPE html> | |
<html lang="ja"> | |
<head> | |
<meta charset="utf-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<title>$.each()のやつ</title> | |
</head> | |
<body> |
This file contains 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
/* | |
* jQuery hasScrollBar plugin ver 0.0.1 | |
* Copyright (c) 2014 tanatana (a.k.a @side_tana) | |
* This source file is subject to the MIT license. | |
*/ | |
(function($) { | |
$.fn.hasScrollBarY = function(options){ | |
var innerWidth = this.innerWidth(); | |
var clientWidth = this[0].clientWidth; |
This file contains 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 'openssl' | |
require 'net/http' | |
require 'uri' | |
IM_KAYAC_SECRET = "YOUR SECRET KEY" | |
IM_KAYAC_USER_ID = "YOUR USER ID" | |
def sendMessage(msg) | |
sha1builder = OpenSSL::Digest.new('sha1') | |
Net::HTTP.post_form(URI.parse("http://im.kayac.com/api/post/#{IM_KAYAC_USER_ID}"), |
NewerOlder