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
現状 | |
だいぶ前にpyenv, anacondaの併用がうまくできずいろいろadhocな作業したせいで、ローカルpython環境が腐ってるので直す | |
[~/IdeaProjects/spaas-airflow]$ which python | |
/usr/bin/python | |
[~]$ pyenv | |
-bash: pyenv: command not found | |
[~]$ cat ~/.bash_profile |grep py |
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> | |
<head> | |
<title>Chat</title> | |
<meta charset="utf-8"></meta> | |
<style type="text/css"> | |
body { background-color: #dbe2ed } | |
.container { | |
width: 688px; | |
margin: 0 auto; |
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
module Fluent | |
class RomaOutput < BufferedOutput | |
Fluent::Plugin.register_output('roma', self) | |
#config_param :host, :string, :default => 'localhost' | |
def initialize | |
super | |
require 'roma/client' | |
end |
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
#!/bin/sh | |
start_date="20120601" | |
end_date="20120610" | |
i=0 | |
while [ 1 ] ;do | |
now=`date +%Y%m%d -d "$start_date + $i days"` | |
echo $now | |
# command |
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 d=document;var s=d.createElement('script');s.src='https://gist.github.com/kkawamura/5713927/raw/76c466ce3e1b1f4cf0f53d822306450ff8066c5f/test2.js'; d.body.appendChild(s)})(); |
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
(function(){ | |
var total = 0; | |
var year = '2012'; | |
function init(num) { | |
num = (typeof num !== 'number' ? 0 : num); | |
if(num === 0) { | |
$('<div/>').css({ | |
position: 'fixed', | |
left: 0, | |
top: 0, |
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
(function(){ | |
var total = 0; | |
var year = '2012'; | |
function init(num) { | |
num = (typeof num !== 'number' ? 0 : num); | |
if(num === 0) { | |
$('<div/>').css({ | |
position: 'fixed', | |
left: 0, | |
top: 0, |
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
(function(){ | |
var total = 0; | |
var year = '2012'; | |
function init(num) { | |
num = (typeof num !== 'number' ? 0 : num); | |
if(num === 0) { | |
$('<div/>').css({ | |
position: 'fixed', | |
left: 0, | |
top: 0, |
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
var str = "19,000円"; | |
now = str.match(/^([0-9,]*)円$/)[1]; | |
now = now.replace(/\,/,""); | |
now = parseInt(now); | |
price = 10; | |
alert(now+price); | |
alert(now); |
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
(function(){ | |
function number_format(num){ | |
return num.toString().replace(/([\d]+?)(?=(?:\d{3})+$)/g, function(t){ return t + ','; }); | |
} | |
function sum_history(){ | |
var elements = document.getElementsByClassName('itemPriceAmount'); | |
var total = 0; | |
for(var i=0; i<elements.length; i++){ |
NewerOlder