Showing content from https://gist.github.com/yous below:
yous’s gists · GitHub
This file contains hidden or 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 // ==UserScript== // @name Marked on Google Drive // @namespace https://github.com/yous // @version 1.1.0 // @description Render markdown preview on Google Drive // @author yous // @homepageURL https://gist.github.com/yous/0b48b98352215ab22eb8591b78f39361 // @updateURL https://gist.github.com/yous/0b48b98352215ab22eb8591b78f39361/raw/marked-google-drive.user.js // @downloadURL https://gist.github.com/yous/0b48b98352215ab22eb8591b78f39361/raw/marked-google-drive.user.js // @license MIT This file contains hidden or 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 /* ==UserStyle== @name Replace fonts in macOS @namespace https://github.com/yous @version 1.0.0 @description Replace old fonts with better ones @author yous @homepageURL https://gist.github.com/yous/91ff6ca317304654aa71e7fdf504e25d @updateURL https://gist.github.com/yous/91ff6ca317304654aa71e7fdf504e25d/raw/replace-fonts-macos.user.css @license CC-BY-4.0 ==/UserStyle== */ This file contains hidden or 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 @font-face { font-style: normal; font-family: "Batang"; src: local("AppleMyungjo"); } @font-face { font-style: normal; font-family: "바탕"; src: local("AppleMyungjo"); } This file contains hidden or 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 from colormath.color_objects import sRGBColor, LabColor from colormath.color_conversions import convert_color from colormath.color_diff import delta_e_cie2000 def hex_to_rgb(h): return sRGBColor(h / 0x10000, (h / 0x100) % 0x100, h % 0x100, is_upscaled=True) This file contains hidden or 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/env ruby require 'webrick' require 'optparse' class NonCachingFileHandler < WEBrick::HTTPServlet::FileHandler def prevent_caching(res) res['ETag'] = nil res['Last-Modified'] = Time.now + 100**4 res['Cache-Control'] = 'no-store, no-cache, must-revalidate, post-check=0, pre-check=0' res['Pragma'] = 'no-cache' This file contains hidden or 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 require 'rack' require 'thin' dirname = File.expand_path(File.dirname(__FILE__)) fileroot = File.join(dirname, 'files') module Rack class UTF8Directory < Directory class DirectoryBody < Directory::DirectoryBody private This file contains hidden or 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 os import base64 import SocketServer import BaseHTTPServer import SimpleHTTPServer class AuthHandler(SimpleHTTPServer.SimpleHTTPRequestHandler): ''' Main class to present webpages and authentication. ''' def do_AUTHHEAD(self): self.send_response(401) This file contains hidden or 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 os.path from functools import wraps from flask import Flask, request, Response, redirect from flask_autoindex import AutoIndex fileroot = os.path.join(os.path.realpath(os.path.curdir), 'files') app = Flask(__name__) idx = AutoIndex(app, browse_root=fileroot, add_url_rules=False) This file contains hidden or 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/env bash for i in {0..7}; do next=$((${i} + 8)) printf "\x1b[38;5;${i}mcolour${i} \x1b[38;5;${next}mcolour${next}\n" done for i in {16..255}; do printf "\x1b[38;5;${i}mcolour${i} " if [[ $((${i} % 6)) == 3 ]]; then printf "\n" fi This file contains hidden or 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 class Happy def initialize print "#{self.class} New " @year = Time.new.year end def method_missing(meth) puts "#{__method__.to_s[/\w+/].capitalize} #{@year}#{meth.to_s[/\W+/]}" end end
You can’t perform that action at this time.
RetroSearch is an open source project built by @garambo
| Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4