Skip to content

Instantly share code, notes, and snippets.

View K-atc's full-sized avatar
:octocat:
Octocatic Days

K_atc K-atc

:octocat:
Octocatic Days
View GitHub Profile
@K-atc
K-atc / Preferences.sublime-settings
Created April 9, 2015 15:40
Sublime Text 3 User Settings
{
"binary_file_patterns":
[
"*.tga",
"*.dds",
"*.ico",
"*.eot",
"*.pdf",
"*.psd",
"*.swf",
@K-atc
K-atc / Readme.md
Last active August 29, 2015 14:18
Windows 時刻合わせバッチ

What is this?

NTPが使えない環境のための時刻合わせバッチファイル(スクリプト)

Requirements

  • 実行時に管理者権限
  • Python
  • requestsモジュール(pip install requests)
  • インターネット
@K-atc
K-atc / Readme.md
Last active August 29, 2015 14:18
Tweetするブックマークレット

Install

javascript:(function(){window.open("https://twitter.com/intent/tweet?text="+encodeURIComponent(document.title+"\n")+location.href,"Tweet","width=550,height=420");})();

をブックマークのURLとして登録。

Usage

@K-atc
K-atc / CJK.xelatex
Last active April 19, 2016 01:52
Texts カスタマイズ関連ファイル
\documentclass[11pt]{article}
% \documentclass[a4paper]{bxjsarticle} % 文書クラスは bxjsarticle
\usepackage[default]{zxjatype} % zxjatype パッケージ読込
\usepackage[utf8]{inputenc}
\usepackage{fontspec, xunicode}
% \usepackage{mathspec}
\usepackage{coloremoji}
@K-atc
K-atc / dvi.bat
Created March 19, 2015 12:29
TeXファイルをBATでPDFにする
cd report\image
ebb *.png
ebb *.jpg
cd ..
"C:/w32tex/bin/platex.exe" -kanji=utf8 -src -interaction=nonstopmode report-master.tex
rm *.pbm
cd ..
@K-atc
K-atc / 全グループ非表示.jsx
Created February 7, 2015 08:23
現在アクティブなPhotoshopドキュメントのすべてのグループを非表示にする
#target photoshop
//app.displayDialogs = DialogModes.NO;
//ドキュメントが開かれているかどうか判別
if (app.documents.length ==0){
//ドキュメントが開かれていない場合処理なし
}
else{
try {
//全てのレイヤーの表示を非表示に
@K-atc
K-atc / Photoshopグループ毎書き出し.jsx
Last active July 28, 2018 16:24
作業ファイルと同じフォルダにoutputフォルダを作り、その中にグループ毎にJPEG書き出しを行うスクリプト
// 参考: http://yukimi.moemoe.gr.jp/MT/archives/2011/10/
#target photoshop
//配列内にobjがあるかをチェック
function check_array(target_array,obj){
for (var i in target_array){
if (target_array[i] == obj){
return true;
break;
}
@K-atc
K-atc / aitter.js
Last active August 29, 2015 14:12 — forked from moroya/aitter.js
(function(){
var total = {};
var year = '2012';
var all = false;
function init(num) {
if(typeof num !== 'number') {
num = 0;
$('<div/>').css({
position: 'fixed',
left: 0,
@K-atc
K-atc / .gitignore
Created November 5, 2014 00:32
.gitignore
# Dev Tools
.svn/
@resources/
node_modules/
# Mac
._*
.DS_Store
# Linux