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
import glob | |
import os | |
import re | |
import unicodedata | |
import codecs | |
import MeCab | |
class Sentence(object): | |
def __init__(self, root): |
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
NAME = ca | |
SRC_DIR = $(CURDIR)/src | |
CLI_DIR = $(CURDIR)/cli | |
TEST_DIR = $(CURDIR)/test | |
BIN_DIR = $(CURDIR)/bin | |
LIB_DIR = $(CURDIR)/lib | |
OBJ_DIR = $(CURDIR)/obj | |
CXX = clang |
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
optionVar -remove "UnityPath"; | |
optionVar -sv "UnityPath" "/Applications/Unity/Unity.app"; |
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
openssl dgst -sha256 pkg/dist/master_darwin_amd64 |
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
public static class Utility | |
{ | |
public static float CalculateAngle(Vector3 from, Vector3 to) | |
{ | |
return Quaternion.FromToRotation(Vector3.up, to - from).eulerAngles.z; | |
} | |
} |
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
interface Product { | |
/** The unique identifier for a product */ | |
id: integer; | |
/** Name of the product */ | |
name: string; | |
/** | |
@minimum 0 | |
@exclusiveMinimum | |
*/ | |
price: number; |
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
set theDoc to (path to desktop as text) & "test.xlsx" | |
set outPath to (path to desktop as text) & "test.html" | |
tell application "Microsoft Excel" | |
open file theDoc | |
tell workbook 1 | |
tell sheet 1 | |
save in outPath as HTML file format | |
end tell | |
close without saving |
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 fontforge -script | |
import fontforge | |
font = fontforge.open("enter your font path") | |
font.selection.all() | |
for glyph in font.selection.byGlyphs: | |
print glyph.encoding |
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 | |
if type misakura > /dev/null 2>&1; then | |
if ! cat $1 | grep '^Before translating into Misakura language:' > /dev/null 2>&1; then | |
mv $1 $1.$$ | |
misakurized=`cat $1.$$ | misakura` | |
printf "${misakurized}\n\nBefore translating into Misakura language:\n`sed -e 's/^/\t/g' $1.$$`" > "$1" | |
rm -f $1.$$ | |
fi | |
fi |
NewerOlder