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
// 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(); |