-
Run the command:
python pixiv_auth.py login
This will open the browser with Pixiv login page.
Discover gists
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
#include <windows.h> | |
extern "C" | |
{ | |
#pragma section(".CRT$XIA",long,read) | |
#pragma section(".CRT$XIZ",long,read) | |
#pragma section(".CRT$XCA",long,read) | |
#pragma section(".CRT$XCZ",long,read) | |
#pragma section(".CRT$XPA",long,read) | |
#pragma section(".CRT$XPZ",long,read) |
-
Get a shareable link from Google Drive by right-clicking the file and selecting
Get Shareable Link
. -
Examine the link to get the file's ID. Example:
https://docs.google.com/open?id=[ID]
- Build the download URL using the ID obtained in Step 1. Example:
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
[ | |
"1185030898148724777", | |
"956131521733984287", | |
"956097947727179806", | |
"1185045871478448242", | |
"932096380879667253", | |
"956246550152118374", | |
"928549000431407164", | |
"976786710836944936", | |
"956128945227567145", |
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
/* Polyfill indexOf. */ | |
var indexOf; | |
if (typeof Array.prototype.indexOf === 'function') { | |
indexOf = function (haystack, needle) { | |
return haystack.indexOf(needle); | |
}; | |
} else { | |
indexOf = function (haystack, needle) { | |
var i = 0, length = haystack.length, idx = -1, found = false; |
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
def multireplace(string, replacements, ignore_case=False): | |
""" | |
Given a string and a replacement map, it returns the replaced string. | |
:param str string: string to execute replacements on | |
:param dict replacements: replacement dictionary {value to find: value to replace} | |
:param bool ignore_case: whether the match should be case insensitive | |
:rtype: str | |
""" |
Bash is the JavaScript of systems programming. Although in some cases it's better to use a systems language like C or Go, Bash is an ideal systems language for smaller POSIX-oriented or command line tasks. Here's three quick reasons why:
- It's everywhere. Like JavaScript for the web, Bash is already there ready for systems programming.
- It's neutral. Unlike Ruby, Python, JavaScript, or PHP, Bash offends equally across all communities. ;)
- It's made to be glue. Write complex parts in C or Go (or whatever!), and glue them together with Bash.
This document is how I write Bash and how I'd like collaborators to write Bash with me in my open source projects. It's based on a lot of experience and time collecting best practices. Most of them come from these two articles, but here integrated, slightly modified, and focusing on the most bang for buck items. Plus some ne
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>Frame Limiting Example</title> | |
</head> | |
<body> | |
<canvas id="gameCanvas" width="800" height="600"></canvas> | |
<script> |
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
# here i am using terminal-notifier | |
# https://github.com/julienXX/terminal-notifier | |
# you can use your own solution | |
# main setting stored in variable | |
# local execution_treshold=30 | |
# if your process executed more than 30 seconds | |
# you will get notified | |
NewerOlder