Skip to content

Instantly share code, notes, and snippets.

View judasnow's full-sized avatar
🏠
Working from home

judasnow

🏠
Working from home
View GitHub Profile
This file has been truncated, but you can view the full file.
Metal Gear Solid PSX Full text dump
Ver 1.1.0
Introduction
-------------------------
This is the complete dump of Metal Gear Solid. there is a lot of info to be read here. The format is quite simple. First each line has the address the text was taken from, and then the text.
Contents:
@judasnow
judasnow / debounce-lodash.js
Created May 7, 2024 09:44 — forked from Yawenina/debounce-lodash.js
lodash debounce and throttle source code
const nativeMax = Math.max;
const nativeMin = Math.min;
function debounce(func, wait, options) {
let lastArgs,
lastThis,
maxWait,
result,
timerId,
lastCallTime,
lastInvokeTime = 0,
@judasnow
judasnow / Office_kms
Created January 12, 2023 01:06 — forked from ettingshausen/Office_kms
KMS server Windows
cd\Program Files\Microsoft Office\Office16
cd\Program Files (x86)\Microsoft Office\Office16
cscript OSPP.VBS /sethst:kms.digiboy.ir
cscript OSPP.VBS /actcscript OSPP.VBS /dstatus
slmgr.vbs /ckms
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
<style id="jsbin-css">
.tri1{
width:0px;
height:0px;
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
<style id="jsbin-css">
.bfc {
border: 1px solid red;
overflow: hidden;
var WebQQWorker = function(qqNumber) {
console.log(`qq: ${qqNumber} worker start`);
this.qq = new QQ(qqNumber);
this.getLoginQrcode();
}
/**
* 从初始页面获取到登录页面的 url 地址
@judasnow
judasnow / cuter.py
Last active August 27, 2015 13:40 — forked from sigilioso/cuter.py
Python PIL Example: get a thumbnail by resizing and cropping an image.
# -*- coding: utf-8 -*-
import Image
def resize_and_crop(img_path, modified_path, size, crop_type='top'):
"""
Resize and crop an image to fit the specified size.
args:
img_path: path for the image to resize.
@judasnow
judasnow / view_helper.ls
Last active August 29, 2015 14:07
Backbone view helper (or base View)
# 一些 view 中的常用函数
# 可以 mixin 到具体的 View 中
define [
\mustache
\prelude
\async
'ls!helper'
], (
@judasnow
judasnow / avoid.html
Last active August 29, 2015 14:05 — forked from anonymous/index.html
<html>
<head>
<script type="text/javascript">
document.write("Avoid leaks by avoiding closures!");
window.onload=function() {
var obj = document.getElementById("element");
obj.onclick = doesNotLeak;
}
function doesNotLeak() {
//Your Logic here