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
#include <stdio.h> | |
#include <stdlib.h> | |
#include <time.h> | |
#include <math.h> | |
#define MAX_N 100 | |
typedef struct { | |
double real; | |
double imag; |
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
<?xml version="1.0" encoding="utf-8"?> | |
<Settings xmlns="http://2.star.glasscore.net/software/solar/" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"> | |
<Settings.Accounts> | |
<AccountToken | |
Name="kakkun61" | |
OAuthToken="9820592-7yshyyoc6tHZifzwD9mLgNjIjSEqpPZdqEVEQ6NarE" | |
OAuthTokenSecret="gsqGlysTPXAC51l5YApcA1aNPQwsjECR4PSzR7pKCY" | |
UserID="9820592" /> | |
</Settings.Accounts> | |
<Settings.CategoryGroups> |
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
// ~/.config/ibus-skk.json | |
{ | |
"custom_rom_kana_rule": { | |
"!": [null, "!"], | |
"\"": [null, "”"], | |
"z\"": [null, "“"], | |
"#": [null, "#"], | |
"$": [null, "$"], | |
"%": [null, "%"], | |
"&": [null, "&"], |
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/bash | |
# /etc/pm/sleep.d/10_touch-pad-off | |
# うまくいかんねー | |
case "$1" in | |
hibernate|suspend) | |
# nothing | |
;; | |
resume|thaw) |
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 Data.List | |
sortByLength = sortBy ord | |
where ord l1 l2 = if length l1 < length l2 | |
then LT | |
else if length l1 > length l2 | |
then GT | |
else EQ | |
where l1l = length l1 | |
l2l = length l2 | |
-- 8:8: parse error on input `where' |
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
short s; | |
double d; | |
s = d; // compilation error | |
s += d; // compilation ok |
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
PARSER_BEGIN (Parser) | |
public class Parser { | |
} | |
PARSER_END (Parser) | |
void List(): { | |
} { | |
"Hello World.\n" | |
} |
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 class Main { | |
public static void main (String[] args) { | |
try { | |
Parser parser = new Parser(System.in); | |
parser.List(); | |
} catch (TokenMgrError ex) { | |
System.out.println("字句解析エラー:" + ex.getMessage()); | |
} catch (ParseException ex) { | |
System.out.println("構文解析エラー:" + ex.getMessage()); | |
} |
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
PARSER_BEGIN (Parser) | |
public class Parser { | |
} | |
PARSER_END (Parser) | |
SKIP: { | |
" " | |
} | |
TOKEN: { | |
<HELLO: "Hello World."> |
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
PARSER_BEGIN (Parser) | |
public class Parser { | |
} | |
PARSER_END (Parser) | |
SKIP: { | |
" " | |
} | |
TOKEN: { | |
<INTEGER: (["0"-"9"])+> |
OlderNewer