Skip to content

Instantly share code, notes, and snippets.

Takuro Monji monzou

Block or report user

Report or block monzou

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@monzou
monzou / review_things.scpt
Created Mar 3, 2011
Things Script (schdule review tasks)
View review_things.scpt
script TermFactory
on create(numericValue, unit)
script Term
property _numericValue : numericValue
property _unit : unit
to displayName()
(my _numericValue as text) & my _unit
end displayName
View ClassJSONWriter.java
package scripts;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.lang.reflect.Method;
import java.util.List;
import java.util.Set;
import java.util.regex.Matcher;
View ReverseHbmToEntityExcel.groovy
package scripts;
import org.apache.poi.hssf.usermodel.HSSFCellStyle
import org.apache.poi.hssf.usermodel.HSSFFont
import org.apache.poi.hssf.usermodel.HSSFRichTextString
import org.apache.poi.hssf.usermodel.HSSFWorkbook
import org.apache.poi.ss.usermodel.CellStyle
import org.apache.poi.ss.usermodel.IndexedColors
/**
View redmine_assign_support.user.js
// ==UserScript==
// @name Redmine Assign Support
// @namespace wiv.cc
// @include <TODO>
// @author monzou
// ==/UserScript==
(function () {
function setup() {
View delegate.rb
require "delegate"
class Support
def initialize(prefix)
@prefix = prefix
@lines = []
end
def write(s)
@monzou
monzou / gist:972232
Created May 14, 2011
cat w/ system call
View gist:972232
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
static void do_cat(const int fd, const char *path);
static void die(const char *s);
View gist:972298
#include <stdio.h>
#include <stdlib.h>
int main(int argc, char const *argv[])
{
int i;
for (i = 1; i < argc; i++) {
FILE *f = fopen(argv[i], "r");
int c;
View gist:972876
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/types.h>
#include <regex.h>
#define _GNU_SOURCE
#include <getopt.h>
static void do_grep(regex_t *pattern, FILE *src, int invert);
View gist:972799
#include <stdio.h>
#include <stdlib.h>
#define _GNU_SOURCE
#include <getopt.h>
static void do_head(FILE *f, long nlines);
#define DEFAULT_N_LINES 10
View english.md

WORDS

  • for the time being : 当分の間・さしあたり
  • nearby : 近くの(形容詞)- ex. We will meet at a nearby café.

GRAMMAR

  • My interests are subject to change.(変更される可能性があります)
  • Am I right in thinking you will only consider xxx ?(〜 と考えて差し支えないでしょうか?)
You can’t perform that action at this time.