Skip to content

Instantly share code, notes, and snippets.

Eric Su eric-cc-su

View GitHub Profile
@eric-cc-su
eric-cc-su / sorting_studies.py
Created Sep 23, 2015
Sorting Algorithms studies
View sorting_studies.py
import sys
import time
#Deal with Python2 and Python3 inputs
def getInput(prompt):
if (sys.version[0] == "2"):
return raw_input(prompt)
else:
return input(prompt)
@eric-cc-su
eric-cc-su / cumin.rb
Last active Aug 29, 2015
Cumin (Cu)stom (min)ifier for GitHub Pages site constructed by Jekyll. This is a simple minifier for javascript. Still a work in progress
View cumin.rb
=begin
author: eric-cc-su
Cumin (Cu)stom (min)ifier
This Ruby script/plugin is meant to minify files that should be minified prior to website deployment.
This plugin will ultimately support simple minification of javascript and css files.
This code is licensed under the MIT License (end of file) and under copyright by Eric Su
@eric-cc-su
eric-cc-su / RLAssembly.rb
Last active Aug 29, 2015
RLAssembly (Reading List Assembly) is a Ruby script to read a Markdown file of categorized links and convert it to JSON. RLAssembly was conceived to be used alongside my GitHub Pages/Jekyll site to produce a reading list of links to articles and websites. It is not currently (06/19/15) constructed as a Jekyll plugin.
View RLAssembly.rb
=begin
RLAssembly
Author: eric-cc-su
RLAssembly (Reading List Assembly) is a command-line Ruby script to read an HTML or Markdown file of categorized links and convert it to JSON. (Because I'm lazy and automation is cool)
RLAssembly was conceived to be used alongside my GitHub Pages/Jekyll site to objectify a reading list of links to articles and websites. It is not currently (06/23/15) constructed as a Jekyll plugin.
View the README for instructions and formatting
@eric-cc-su
eric-cc-su / clingycat.py
Last active Aug 29, 2015
Formerly reminders.py. Command Line program that produces a popup reminder of choice at given time interval in seconds (default: "Stand up and stretch!" every 60 minutes)
View clingycat.py
"""
author: eric-cc-su
This is a command line program that produces a popup with text of choice at given time inteval in seconds
(default: "Stand up and stretch!" every 60 minutes)
This code is under the MIT License (end of file) and copyrighted by Eric Su
"""
import argparse, os, sys, time, traceback
@eric-cc-su
eric-cc-su / modtime.rb
Last active Aug 29, 2015
Script to manage modification time stamps of blog files
View modtime.rb
=begin
Author: eric-cc-su
This is a Ruby script to add a custom variable for modification time to each post's front matter.
Currently not set up as a plugin, so this will need to be executed manually.
As long as the file modification time of the file matches up with the date of the post, the script
can add or change the mtime variable.
This code is licensed under the MIT License (end of file) and copyrighted by Eric Su
@eric-cc-su
eric-cc-su / cattag.rb
Last active Aug 29, 2015
Automation of Minddust's Approach to Categories and Tags for Jekyll
View cattag.rb
=begin
author: eric-cc-su
This is a ruby script that automates Minddust's method to implement categories and tags for Jekyll generator, which conforms
to GitHub Pages' safe mode execution (no custom plugins are run by GitHub Pages serves)
Minddust's method: http://www.minddust.com/post/tags-and-categories-on-github-pages/
This code is licensed under the MIT License (end of file) and under copyright by Eric Su
=end
You can’t perform that action at this time.