Skip to content

Instantly share code, notes, and snippets.

View blueset's full-sized avatar

Eana Hufwe blueset

View GitHub Profile
@blueset
blueset / keybase.md
Created February 21, 2016 02:10
keybase

Keybase proof

I hereby claim:

  • I am blueset on github.
  • I am blueset (https://keybase.io/blueset) on keybase.
  • I have a public key ASDlmdWfmOfm5sOK2jEMR2S8dCjDaVdgBbiIxQovia_apwo

To claim this, I am signing this object:

@blueset
blueset / calendar.html
Created March 18, 2016 13:20
可打印的2016年年历,为A4横版黑白打印设计。
<!--
这是一个可以打印的2016年年历,为A4横版黑白打印设计。
使用字体:(系统自带黑体),Herme Geometric Sans 1,STSongti Black
制作:蓝色之风 <https://1a23.com>
日历数据来源:http://wannianli.tianqi.com/
数据替换方法:
使用网页上的下拉菜单切换月份,并从 Chrome 的「审查元素」中将当月的 `<table>` 元素复制出来,替换网页里面的Table。
将节日文字替换黑白节日:
`:%s/" style="color: #[0-9A-F]{6}/ specialDay/g`
备注:
@blueset
blueset / TTPlayer(LRC).py
Created March 26, 2016 06:52 — forked from douo/TTPlayer(LRC).py
Lyrics Grabber2 的千千静听歌词抓取脚本
# -*- coding: utf-8 -*-
import encodings.utf_8
import math
import urllib, urllib2
import random
import re
from xml.dom import minidom
from LevenshteinDistance import LevenshteinDistance
from grabber import LyricProviderBase
@blueset
blueset / Lyricist(LRC).py
Created March 26, 2016 06:53 — forked from douo/Lyricist(LRC).py
Lyrics Grabber2 乐辞的脚本
# -*- coding: utf-8 -*-
# Code from LyricZilla - Linux 下的滚动歌词
from encodings import gb18030, utf_8
import urllib
from xml.dom import minidom
from LevenshteinDistance import LevenshteinDistance
from grabber import LyricProviderBase
__all__ = 'Lyricist'
@blueset
blueset / README.md
Last active March 25, 2023 04:01
UniMelb COMP10001 2016S2 Worksheet My Solution

This is the place for me to share my solutions to the Grok Learning Worksheets for the COMP10001 Foundation of Computing course in the University of Melbourne in Semester 2, 2016.

Take note that all code released here are EXPIRED, i.e. they are no longer available to be submitted as examinable works. And all codes below is licensed under MIT license.

Note that some codes used below may include advanced contents that may not be taught before the deadline. Also, some “dirty tricks”, like joining code into one long line, is strongly not recommended to be used in your projects.

In the meanwhile, you might be interested in my solution to the Practice Projects.

- -------------------------------- !ALERT! --------------------------------- -
@blueset
blueset / README.md
Last active November 17, 2021 02:05
UniMelb COMP10001 2016S2 Practice Project: My Solution

Here I'm posting my solutions to the Practice Project for the COMP10001 Foundation of Computing course in the University of Melbourne in Semester 2, 2016.

NOTICE

The solution below is just my solution. IT IS NOT:

  • A sample answer from any lecturer, tutor, or any teaching staff.
  • A marking scheme used for any of the actual assessments
  • A perfect solution for anyone to take as a template for your project
  • A reason for you to give up on trying your practice project

I advice you to try on your own first before you read this solution.

@blueset
blueset / README.md
Last active November 17, 2021 02:05
UniMelb COMP10001 2016S2 Project 1 My Solution

This is the place for me to share my solutions to Project 1 for the COMP10001 Foundation of Computing course in the University of Melbourne in Semester 2, 2016.

Take note that all code released here are EXPIRED, i.e. they are no longer available to be submitted as examinable works. And all codes below is licensed under MIT license.

Copyright (c) 2016 Eana Hufwe

Permission is hereby granted, free of charge, to any person obtaining a 
copy of this software and associated documentation files (the "Software"), 
to deal in the Software without restriction, including without limitation 
@blueset
blueset / tsp.cpp
Last active September 8, 2016 01:51
UMCPC Traveling Salesman Problem 20160908
// Travelling Salesman problem
// Sample code @ UMCPC
// Time complexity: O(n + 2^n)
// memo: cached value
int tsp(int curr, int visited) { // visited = binary visited list
if (memo[curr][visited] != -1) {
// return cached value
return memo[curr][visited];
@blueset
blueset / run.sh
Last active October 1, 2016 00:24
C++ Compiling | Running script for competitive programming
# compile
clear
if [ -z "$1" ]
then
echo "$0 Usage:"
echo " $0 sourceCode.cpp [inputFile.in]"
echo ""
echo "Example:"
echo " $0 test.cpp"
echo " $0 test.cpp test.1.in"
@blueset
blueset / README.md
Last active October 5, 2016 22:01
UniMelb COMP10001 2015S2 Project 3: My Solution
  • Solutions including challenging questions
  • Questions