Skip to content

Instantly share code, notes, and snippets.

View saberLiou's full-sized avatar
πŸ‘¨β€πŸ’»
Software Developer

Guo-Xun Liu saberLiou

πŸ‘¨β€πŸ’»
Software Developer
  • TWJOIN Co., Ltd.
  • Taichung, Taiwan
  • 21:35 (UTC +08:00)
  • X @saberliou
View GitHub Profile
@saberLiou
saberLiou / HollowVocabulary.java
Last active December 15, 2019 12:14
Hollow out a list of vocabularies to make out questions.
import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;
public class HollowVocabulary {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
int engIndex;
String voc, eng;
List<String> list = new ArrayList<>();
@saberLiou
saberLiou / IsInteger.java
Last active December 8, 2019 13:57
Judge (number[i] - number[j]) / number[k] is an integer.
import java.util.Scanner;
class IsInteger {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int numbers[] = new int[sc.nextInt()], i = 0;
while (i < numbers.length) numbers[i++] = sc.nextInt();
String isInteger = "yes";
for (i = 0; !isInteger.equals("no") && i < numbers.length; i++) {
@saberLiou
saberLiou / Response.php
Created April 30, 2019 16:40 — forked from jeffochoa/Response.php
Laravel HTTP status code
<?php
// This can be found in the Symfony\Component\HttpFoundation\Response class
const HTTP_CONTINUE = 100;
const HTTP_SWITCHING_PROTOCOLS = 101;
const HTTP_PROCESSING = 102; // RFC2518
const HTTP_OK = 200;
const HTTP_CREATED = 201;
const HTTP_ACCEPTED = 202;
@saberLiou
saberLiou / digits-product-number.cpp
Last active January 12, 2019 15:36
Input a positive integer from 0 to 99999999, output the smallest positive number whose product of each digits equals to the input integer.
#include <iostream>
#include <string>
#include <math.h>
using namespace std;
long long getInput(int);
long long outputResult(long long);
int getOneDigitFactorNumber(long long);
@saberLiou
saberLiou / gist:852bc798ac9fe5a21fe3174211083d6f
Created December 15, 2018 10:54 — forked from rxaviers/gist:7360908
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: πŸ˜„ :smile: πŸ˜† :laughing:
😊 :blush: πŸ˜ƒ :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
πŸ˜† :satisfied: 😁 :grin: πŸ˜‰ :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: πŸ˜€ :grinning:
πŸ˜— :kissing: πŸ˜™ :kissing_smiling_eyes: πŸ˜› :stuck_out_tongue:
@saberLiou
saberLiou / YouTube_Markdown.txt
Created December 15, 2018 09:54 — forked from AlanSimpsonMe/YouTube_Markdown.txt
Markdown code for a YouTube video
[![ALT TEXT](https://img.youtube.com/vi/YOUTUBEID/0.jpg)](https://youtu.be/YOUTUBEID "TOOLTIP TEXT")
<!DOCTYPE html>
<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<style>
body {
background: repeat url('data:image/jpeg;base64,/9j/4AAQSkZJRgABAQEASABIAAD/7QCIUGhvdG9zaG9wIDMuMAA4QklNBAQAAAAAAGscAVoAAxslRxwCAAACAAAcAnQAV8KpIENoYWV5b3VuZ1dpbGxOZXZlckNoYWVvbGQgLSBodHRwOi8vd3d3LnJlZGJ1YmJsZS5jb20vcGVvcGxlL0NoYWV5b3VuZ1dpbGxOZXZlckNoYWVvbAD/4gxYSUNDX1BST0ZJTEUAAQEAAAxITGlubwIQAABtbnRyUkdCIFhZWiAHzgACAAkABgAxAABhY3NwTVNGVAAAAABJRUMgc1JHQgAAAAAAAAAAAAAAAAAA9tYAAQAAAADTLUhQICAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABFjcHJ0AAABUAAAADNkZXNjAAABhAAAAGx3dHB0AAAB8AAAABRia3B0AAACBAAAABRyWFlaAAACGAAAABRnWFlaAAACLAAAABRiWFlaAAACQAAAABRkbW5kAAACVAAAAHBkbWRkAAACxAAAAIh2dWVkAAADTAAAAIZ2aWV3AAAD1AAAACRsdW1pAAAD+AAAABRtZWFzAAAEDAAAACR0ZWNoAAAEMAAAAAxyVFJDAAAEPAAACAxnVFJDAAAEPAAACAxiVFJDAAAEPAAACAx0ZXh0AAAAAENvcHlyaWdodCAoYykgMTk5OCBIZXdsZXR0LVBhY2thcmQgQ29tcGFueQAAZGVzYwAAAAAAAAASc1JHQiBJRUM2MTk2Ni0yLjEAAAAAAAAAAAAAABJzUkdCIElFQzYxOTY2LTIuMQAAAAAAAA
@saberLiou
saberLiou / palindrome.cpp
Last active January 12, 2019 15:37
Accumulate integer to Palindrome
#include <iostream>
#include <string>
using namespace std;
long long reverseInteger(long long);
string accumulateToPalindrome(int, long long);
int main()
{