This file contains 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
## This is only run on my MBA with Monterey. Please use this at your own risk. | |
# Disable all animations. | |
sudo defaults write com.apple.finder DisableAllAnimations -bool true | |
sudo defaults write NSGlobalDomain NSAutomaticWindowAnimationsEnabled -bool false | |
sudo defaults write com.apple.dock launchanim -bool false | |
sudo defaults write com.apple.dock expose-animation-duration -float 0.1 | |
sudo defaults write NSGlobalDomain NSWindowResizeTime -float 0.001 | |
sudo defaults write com.apple.Dock autohide-delay -float 0 | |
sudo defaults write QLPanelAnimationDuration -float 0 |
This file contains 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 SimpleHTTPServer | |
from SimpleHTTPServer import SimpleHTTPRequestHandler | |
class RangeHTTPRequestHandler(SimpleHTTPRequestHandler): | |
"""RangeHTTPRequestHandler is a SimpleHTTPRequestHandler | |
with HTTP 'Range' support""" | |
def send_head(self): | |
"""Common code for GET and HEAD commands. |
This file contains 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
REGEDIT4 | |
[HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\FontLink\SystemLink] | |
"Arial"="wqy-microhei.ttc" | |
"Arial Black"="wqy-microhei.ttc" | |
"Arial CE,238"="wqy-microhei.ttc" | |
"Arial CYR,204"="wqy-microhei.ttc" | |
"Arial Greek,161"="wqy-microhei.ttc" | |
"Arial TUR,162"="wqy-microhei.ttc" | |
"Courier New"="wqy-microhei.ttc" |
This file contains 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
SET SERVEROUTPUT ON SIZE 100000 | |
DECLARE | |
match_count INTEGER; | |
BEGIN | |
FOR t IN (SELECT owner, table_name, column_name | |
FROM all_tab_columns | |
WHERE owner <> 'SYS' and data_type LIKE '%CHAR%') LOOP | |
EXECUTE IMMEDIATE |
This file contains 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
Dependencies packages for Quake4. Since quake4 is 32 bits application. Following packages must install. | |
## Known Issues: ## | |
No sound - fix | |
## Pre-requisites ## | |
Original quake4 dvd with key. Require for the game data file. Else the game won't run | |
xorg-server required. User login session must using xorg-server as backend. No wayland. I.e gnome with xorg. | |
## Download the linux quake4 installer. ## |
This file contains 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
// Returns a function, that, as long as it continues to be invoked, will not | |
// be triggered. The function will be called after it stops being called for | |
// N milliseconds. If `immediate = true` is passed, trigger the function on the | |
// leading edge, instead of the trailing. | |
// Debounce function to slow down the scrolling trigger | |
function debounce(func, wait, immediate) { | |
var timeout; | |
return function() { | |
var context = this, args = arguments; |
This file contains 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
--- dsdt.dsl 2018-03-04 16:00:00.866484238 -0800 | |
+++ dsdt.dsl 2018-03-04 16:28:07.933272752 -0800 | |
@@ -18,9 +18,8 @@ | |
* Compiler ID "INTL" | |
* Compiler Version 0x20160527 (538314023) | |
*/ | |
-DefinitionBlock ("", "DSDT", 2, "LENOVO", "SKL ", 0x00000000) | |
+DefinitionBlock ("", "DSDT", 2, "LENOVO", "SKL ", 0x00000001) | |
{ | |
- External (_GPE.TBNF, MethodObj) // 0 Arguments |
This file contains 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
//image to pinch | |
<img id="hammerFrame" src="images/tutorials.jpeg" /> | |
<script> | |
var myElement = document.getElementById('hammerFrame'); | |
var mc = new Hammer.Manager(myElement); | |
var webpage = document.querySelector("#hammerFrame"); | |
// create a pinch and rotate recognizer | |
// these require 2 pointers | |
var pinch = new Hammer.Pinch(); |