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
/* | |
Author : helloqiu | |
Description: A simple homework. | |
P.S. You should do it yourself. QAQ | |
*/ | |
#include <stdio.h> | |
#include <stdlib.h> | |
struct Student{ | |
int id; |
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 java.util.ArrayList; | |
import java.util.Collections; | |
import java.util.Scanner; | |
/** | |
* Created by helloqiu on 16/3/17. | |
*/ | |
public class MainClass { | |
public static void main(String[] args) { | |
String[] order = {"first","second","third"}; |
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
# coding=utf-8 | |
import requests | |
import threading | |
import queue | |
import time | |
thread_num = 5 | |
dog_wait_time = 0.01 | |
input = open('../magnet.txt', 'r') |
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
#!/usr/bin/bash | |
filename=$1 | |
while read name | |
do | |
echo $name | sed -e 's/ /_/g' | |
done < "$filename" |
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
#!/usr/bin/perl | |
=pod | |
=head1 NAME | |
apt-mirror - apt sources mirroring tool | |
=head1 SYNOPSIS |
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 | |
max_space_user(){ | |
du -s /home | sort -nr | head -1 | |
} | |
max_file(){ | |
find -type f -exec stat -c "%s %n" {} \; | sort -nr | head -1 | |
} |
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
# -*- coding: utf-8 -*- | |
import networkx | |
import matplotlib.pyplot as plt | |
import random | |
import json | |
l = dict() | |
c = dict() |
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
// | |
// Created by helloqiu on 2017/3/18. | |
// | |
#ifndef LIST_LIST_H | |
#define LIST_LIST_H | |
struct list_head { | |
struct list_head *next, *prev; | |
}; |
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
systemctl stop plexmediaserver | |
cd '/var/lib/plex/Plex Media Server/Plug-ins' | |
git clone https://github.com/ZeroQI/Hama.bundle.git | |
chown -R plex:plex '/var/lib/plex/Plex Media Server/Plug-ins/Hama.bundle' | |
chmod 775 -R '/var/lib/plex/Plex Media Server/Plug-ins/Hama.bundle' | |
mkdir -p '/var/lib/plex/Plex Media Server/Scanners/Series' | |
wget -O '/var/lib/plex/Plex Media Server/Scanners/Series/Absolute Series Scanner.py' https://raw.githubusercontent.com/ZeroQI/Absolute-Series-Scanner/master/Scanners/Series/Absolute%20Series%20Scanner.py | |
chown -R plex:plex '/var/lib/plex/Plex Media Server/Scanners' | |
chmod 775 -R '/var/lib/plex/Plex Media Server/Scanners' |
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
$.getScript('https://cdn.bootcss.com/FileSaver.js/2014-11-29/FileSaver.min.js', function() { | |
const table_rows = $('#manualArrangeCourseTable').children('tbody')[0].children | |
let course_result = [] | |
for (let i = 0; i < 12; i++) { | |
const row = table_rows[i] | |
for (let j = 0; j < 8; j++) { | |
const block = row.children[j] | |
if (block && block.hasAttribute('title')) { | |
const data = /(.*)\s([^ \(]*)\(.*(\d+)\-(\d+)\,(.*)\)/.exec(block.title) | |
course_result.push({ |
OlderNewer