Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
--- a/kk-star-ratings/js/kk-ratings.js 2012-05-08 21:00:16.000000000 +0900 | |
+++ b/kk-star-ratings/js/kk-ratings.js 2013-07-17 02:04:01.539796700 +0900 | |
@@ -93,7 +93,7 @@ | |
msg = msg.replace(/^\s+|\s+$/g,""); | |
var response = msg.split('|||'); | |
- if(response[0]=='SUCCESS') | |
+ if(response[1]!='') | |
{ | |
var per = response[1]; |
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
system = require 'system' | |
fs = require 'fs' | |
if system.args.length is 1 | |
console.log 'Usage: data-saver.coffee address [userName] [password]' | |
phantom.exit 1 | |
else | |
phantom.outputEncoding = 'System' # for good old ms-dos | |
console.log 'ブラウザ起動中...' |
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
# -*- coding: utf-8 -*- | |
# cppsyntax.py - sublimelint package for checking syntax of c++ files | |
# 以下のclang実装を参考に作成した | |
# https://github.com/itsbth/SublimeLinter/blob/da0e15275b7c38cbfbc768a2dcc8e62a0e925ca0/sublimelinter/modules/cpp.py | |
import os.path | |
import re | |
from base_linter import BaseLinter, INPUT_METHOD_TEMP_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
LEX = flex | |
CC = gcc | |
LDLIBS=-lfl | |
LEXES = $(wildcard *.lex) | |
EXES = $(LEXES:%.lex=%.exe) | |
all: $(EXES) | |
%.c:%.lex |
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
# ファイル構成: | |
# root | |
# |- src :*.cppが入っている | |
# |- bin :ここに*.exeが生成される | |
CXXFLAGS = -O2 -g -Wall -fmessage-length=0 | |
CPPS = $(wildcard src/*.cpp) | |
OBJS = $(CPPS:.cpp=.o) |
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
@echo off | |
for %%i in (*.wmf) do set WMF=%%i&call :sub | |
goto :eof | |
:sub | |
set SVG=%WMF:~0,-3%svg | |
"C:\Program Files (x86)\Inkscape\inkscape" "%WMF%" -l "%SVG%" | |
:: the inkcape path is hard coded, so you probably need to modify it |
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
// ==UserScript== | |
// @name Fix chinese font | |
// ==/UserScript== | |
(function() { if(document.documentElement.lang === '') document.documentElement.lang = 'ja'; })(); |