Instantly share code, notes, and snippets.

🎼
Practising his hemidemisemiquaver

# Zhang Yi JiangZhangYiJiang

🎼
Practising his hemidemisemiquaver
• Sort options
Created Sep 9, 2016
Finding Majority
View majority.py
 from pprint import pprint def find_majority(lst): maj = majority(lst) pprint(maj) if len(maj) > 1: return 'Not Found' else: return list(maj.keys())[0]
Last active Jan 21, 2019
Automatically take IVLE quizzes (DO NOT USE ON QUIZZES THAT HAVE LIMITED ATTEMPTS)
View quiz.user.js
 // ==UserScript== // @name Automatic Test Taker // @namespace yijiang // @description Automatically takes repeatable tests // @include https://ivle.nus.edu.sg/v1/Assessment/Student/assessment_content.aspx* // @include https://ivle.nus.edu.sg/v1/Assessment/Student/result_details.aspx* // @include https://ivle.nus.edu.sg/v1/Assessment/Student/result_main.aspx* // @version 1.1 // @include https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js // @grant none
Created Aug 12, 2016
Reorder CORS tutorial ranking using drag and drop
View cors.user.js
 // ==UserScript== // @name CORS Tutorial Reordering // @namespace yijiang // @description Reorder CORS tutorial ranking using drag and drop // @include https://myaces.nus.edu.sg/cors/RankTutorialServlet // @require https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js // @require https://ajax.googleapis.com/ajax/libs/jqueryui/1.11.4/jquery-ui.min.js // @version 1 // @grant none // ==/UserScript==
Last active Jul 10, 2016
 @namespace url(http://www.w3.org/1999/xhtml); @-moz-document domain("gaming.stackexchange.com"), domain("meta.gaming.stackexchange.com") { /* Tag hover fix */ a.post-tag::before, span.post-tag::before { transition: all .15s; }
Created Jul 1, 2016
View DenyFrames.php
Created May 5, 2016
Reset user password command for Laravel
Created May 5, 2016