Skip to content

Instantly share code, notes, and snippets.

View music1353's full-sized avatar
🎯
Focusing

Jenson Su music1353

🎯
Focusing
View GitHub Profile
def fizzbuzz(size, &block)
arr = [*1..size]
arr.map! do |x|
x = if (x % 3).zero? && (x % 5).zero?
'FizzBuzz'
elsif (x % 3).zero?
'Fizz'
elsif (x % 5).zero?
'Buzz'
ּ_בּ
בּ_בּ
טּ_טּ
כּ‗כּ
לּ_לּ
מּ_מּ
סּ_סּ
תּ_תּ
٩(×̯×)۶
٩(̾●̮̮̃̾•̃̾)۶
@music1353
music1353 / git_toturial
Created June 14, 2018 11:11 — forked from guweigang/git_toturial
git命令大全
git init # 初始化本地git仓库(创建新仓库)
git config --global user.name "xxx" # 配置用户名
git config --global user.email "[email protected]" # 配置邮件
git config --global color.ui true # git status等命令自动着色
git config --global color.status auto
git config --global color.diff auto
git config --global color.branch auto
git config --global color.interactive auto
git config --global --unset http.proxy # remove proxy configuration on git
git clone git+ssh://[email protected]/VT.git # clone远程仓库
@music1353
music1353 / ITSA62-Problem4.java
Created March 18, 2018 01:20
[ITSA62] Problem 4. 盜墓驚魂
import java.util.ArrayList;
import java.util.Scanner;
public class Problem4 {
public static void main(String[] args) {
Scanner input = new Scanner(System.in);
int n = input.nextInt();
ArrayList<String> result_al = new ArrayList<>();
ArrayList<Integer> num_al = new ArrayList<>();
@music1353
music1353 / ITSA62-Problem2.java
Created March 17, 2018 12:54
[ITSA62] Problem 2. 高頻字元
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Map;
import java.util.Scanner;
public class Problem2 {
public static void main(String[] args) {
Scanner input = new Scanner(System.in);
int n = input.nextInt();
@music1353
music1353 / ITSA62-Problem1.java
Last active March 17, 2018 11:48
[ITSA62] Problem 1. 圈圈叉叉
import java.util.ArrayList;
import java.util.Scanner;
public class Problem1 {
public static void main(String[] args) {
Scanner input = new Scanner(System.in);
int n = input.nextInt();
ArrayList<String> result_li = new ArrayList<String>();