Skip to content

Instantly share code, notes, and snippets.

:octocat:
NullPointerException.

Eana Hufwe blueset

:octocat:
NullPointerException.
Block or report user

Report or block blueset

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@blueset
blueset / README.md
Last active Jul 10, 2019
Download/Print StuDocu.com documents without watermark
View README.md

Usage

Add StuDocu Extracter to your Browser favorites, and click on it after you open the StuDocu document.

How it works

javascript:(function(){var a = "", x = document.getElementsByTagName("svg"); for(var i = 0; i < x.length; i++){a += x[i].outerHTML;} document.getElementsByTagName("body")[0].innerHTML = a;var a = document.getElementsByTagName("svg");for (var i = 0; i < a.length; i++){a[i].style.width="99.8%";a[i].style.height="auto";a[i].style.position="inherit";a[i].style.display="block";a[i].style.boxShadow="0 3px 3px rgba(0,0,0,0.3)";a
@blueset
blueset / README.md
Last active Oct 5, 2016
UniMelb COMP10001 2015S2 Project 3: My Solution
View README.md
  • Solutions including challenging questions
  • Questions
@blueset
blueset / run.sh
Last active Oct 1, 2016
C++ Compiling | Running script for competitive programming
View run.sh
# 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 / tsp.cpp
Last active Sep 8, 2016
UMCPC Traveling Salesman Problem 20160908
View tsp.cpp
// 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 / README.md
Last active Sep 6, 2016
UniMelb COMP10001 2016S2 Project 1 My Solution
View README.md

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 / README.md
Last active Aug 22, 2016
UniMelb COMP10001 2016S2 Practice Project: My Solution
View README.md

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 Aug 30, 2018
UniMelb COMP10001 2016S2 Worksheet My Solution
View README.md

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 adcanced content 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.

Copyright (c) 2016 Eana Hufwe
@blueset
blueset / Lyricist(LRC).py
Created Mar 26, 2016 — forked from douo/Lyricist(LRC).py
Lyrics Grabber2 乐辞的脚本
View Lyricist(LRC).py
# -*- 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 / TTPlayer(LRC).py
Created Mar 26, 2016 — forked from douo/TTPlayer(LRC).py
Lyrics Grabber2 的千千静听歌词抓取脚本
View TTPlayer(LRC).py
# -*- 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 / calendar.html
Created Mar 18, 2016
可打印的2016年年历,为A4横版黑白打印设计。
View calendar.html
<!--
这是一个可以打印的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`
备注:
You can’t perform that action at this time.