Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
if #arg < 3 then | |
print('Usage: ' .. arg[0] .. ' <hor-skip> <ver-skip> <node> [<node> ...]') | |
return | |
end | |
local horskip = tonumber(arg[1]) | |
local verskip = tonumber(arg[2]) | |
local nodes = {} | |
for i = 3, #arg do | |
nodes[i - 2] = tonumber(arg[i]) |
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.ingress.com (记得一定要带 HTTPS,默认访问不带)然后启动控制台工具,复制以下代码。 | |
// 控制台会将旧 IITC 中的所有数据输出,将它复制到剪贴板中再继续下一步(或是启动新的标签页来进行下一步) | |
function exp() { | |
let getKey, i = 0, res = {} | |
do { | |
getKey = localStorage.key(i++) | |
let keyres = localStorage.getItem(getKey) | |
if (getKey) { | |
try { |
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
// run this second | |
import GitHub from '@octokit/rest' | |
import * as _ from 'lodash' | |
import * as fs from 'fs-extra' | |
import pMap from 'p-map' | |
import repos from '../repos.json' | |
let statuses: {[repo: string]: string[]} |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
# Make sure you grab the latest version | |
curl -OL https://github.com/google/protobuf/releases/download/v3.3.0/protoc-3.3.0-linux-x86_64.zip | |
# Unzip | |
unzip protoc-3.3.0-linux-x86_64.zip -d protoc3 | |
# Move protoc to /usr/local/bin/ | |
sudo mv protoc3/bin/* /usr/local/bin/ | |
# Move protoc3/include to /usr/local/include/ |
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
"""Modified VGG16 to compute perceptual loss. | |
This class is mostly copied from pytorch/examples. | |
See, fast_neural_style in https://github.com/pytorch/examples. | |
""" | |
import torch | |
from torchvision import models | |
class VGG_OUTPUT(object): |
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
// ******************** | |
// * Author: JerryQu | |
// * https://imququ.com | |
// ********************* | |
(function(window, document, navigator, location) { | |
var screen = window.screen; | |
var encode = encodeURIComponent; | |
var data = [ | |
'dt=' + encode(document.title), |
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://vt4help.service-now.com/kb_view_customer.do?sysparm_article=KB0010740#linux | |
wget https://secure.nis.vt.edu/resources/downloads/pulse-8.2R5.i386.deb | |
sudo dpkg –i pulse-8.2R5.i386.deb | |
/usr/local/pulse/PulseClient.sh install_dependency_packages |
NewerOlder