Skip to content

Instantly share code, notes, and snippets.

View Loliver1224's full-sized avatar
🌸
今日も一日がんばるぞい!

FURUKAWA Daichi Loliver1224

🌸
今日も一日がんばるぞい!
View GitHub Profile
@Loliver1224
Loliver1224 / MyPrint.java
Created March 11, 2021 14:11
Javaにおけるprintlnの簡潔化
public class MyPrint {
public static void main(String[] args) {
println("Hello, world!");
}
void print(Object line) {
System.out.print(line);
}
void println(Object line) {
System.out.println(line);
@Loliver1224
Loliver1224 / Julialang.sty
Last active November 5, 2020 06:27
Julia-lang style definition for LaTeX Listings.
%% Julia definition (c) 2020 Daichi Furukawa
%%
\lstdefinelanguage{Julia}{%
morekeywords={abstract, ans, baremodule, begin, break, const, continue, do,%
elseif, else, end, export, finally, for, function, global, if, import,%
let, local, macro, module, mutable, primitive, quote, return, struct, try,%
type, using, var, where, while},%
% Types
morekeywords=[2]{Any, Array, Bool, BigInt, BigFloat, Char, DataType, Enum,%
Expr, Float16, Float32, Float64, Function, Inf, Inf16, Inf32, Int8, Int16,%
alias l='exa -alhF --git'
alias p='bat'
alias 2='cd ~/2nd'
alias 3='cd ~/3rd'
alias 4='cd ~/4th'
alias web='cd ~/public_html/webexer/CSS'
alias oop='cd ~/4th/oop'
alias os='cd ~/4th/os'
alias net='cd ~/4th/net'
@Loliver1224
Loliver1224 / check_envp.c
Last active June 30, 2019 04:34
実はC言語のmain関数には第3の引数が存在するというわけで
#include <stdio.h>
int main(int argc, char *argv[], char *envp[]){
/* check argc */
printf("argc = %d\n", argc);
/* check argv */
printf("argv = [");
for(int i=0; i<argc; i++)
printf("\'%s\' ", argv[i]);
@Loliver1224
Loliver1224 / helloworld.c
Last active June 30, 2019 04:35
C言語でも1行でHello worldできるんやで
main(){puts("Hello, world!");}
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
typedef struct{
int id;
char name[20];
} dict;
int intcmp(const void *a, const void *b){
# ==================== Emojis ====================
# 🎉 :tada: Initial commit
# 🎨 :art: デザイン
# 🐛 :bug: バグ修正
# ♻️ :recycle: リファクタリング
# 💄 :lipstick: コード整形
# ✏️ :pencil2: typo
# 📚 :books: ドキュメント
# 🔖 :bookmark: ブクマ