Skip to content

Instantly share code, notes, and snippets.

View sinmaplewing's full-sized avatar
😃
Move all personal projects to "Maplewing's Personal Projects"

Maplewing sinmaplewing

😃
Move all personal projects to "Maplewing's Personal Projects"
View GitHub Profile
// ==UserScript==
// @name Apollo Displayer
// @namespace http://knightzone.studio
// @version 0.1
// @description try to do the chart of the apollo
// @author Maplewing
// @match https://apollo.mayohr.com/ta/personal/checkin/checkinrecords/workrecords
// @grant none
// ==/UserScript==
@sinmaplewing
sinmaplewing / sample.html
Last active December 24, 2017 13:30
sample.html
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>Sample</title>
<style>
body{
text-align: center;
}
#include <iostream>
using namespace std;
int main(){
string a = "ABCDEFG";
cout << a << endl;
cout << "a" << endl;
return 0;
#include <stdio.h>
int f(int n){
if( n == 0 ){
return 0;
}
else if( n == 1 ){
return 1;
}
else {
#include <stdio.h>
int main(){
char inputFilename[80];
char outputFilename[80];
scanf("%s", inputFilename);
scanf("%s", outputFilename);
/*
#include "student.h"
int maxScore(int n, Student *students){
int max = 0;
int i;
for( i = 1 ; i < n ; i++ ){
if( students[i].chinese +
students[i].english +
students[i].math >
students[max].chinese +
#include <stdio.h>
typedef struct{
char name[80];
int chineseScore;
int englishScore;
int mathScore;
int age;
int blood; // A: 1, B: 2, AB: 3, O: 4
} Student;
#include <stdio.h>
void swap(int *a, int *b){
int temp = *a;
*a = *b;
*b = temp;
}
int main(){
int a, b;
int sum(int n);
int sum(int n){
int total = 0; // (x) int sum = 0;
int i;
for( i = 1 ; i <= n ; i++ ){
total += i;
}
return total;
}