This file contains hidden or 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
Host * | |
ServerAliveInterval 300 | |
ServerAliveCountMax 10 | |
ForwardX11 yes | |
ForwardX11trusted yes | |
ForwardAgent yes |
This file contains hidden or 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
javascript:window.prompt('',`[${document.title} ${location.href}]`);void(0); |
This file contains hidden or 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
javascript:(function() { const contestName = document.querySelector("a.contest-title").innerHTML; const contestUrl = document.querySelector("a.contest-title"); const times = document.querySelectorAll("small.contest-duration a"); const startTimeFormed = String(times[0]) .split("=")[1].replace("&p1", "") + "00"; const endTimeFormed = String(times[1]) .split("=")[1].replace("&p1", "") + "00"; const googleCalendarUrl = "http://www.google.com/calendar/event?" + "action=" + "TEMPLATE" + "&text=" + encodeURIComponent(contestName) + "&dates=" + startTimeFormed + "/" + endTimeFormed + "&location=" + contestUrl; window.open(googleCalendarUrl, ''); })(); |
This file contains hidden or 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
#!/usr/bin/env ruby | |
# frozen_string_literal: true | |
require 'json' | |
require 'pathname' | |
require 'stringio' | |
require 'net/http' | |
require 'uri' |
This file contains hidden or 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: "ResNet-50" | |
input: "data" | |
input_dim: 1 | |
input_dim: 3 | |
input_dim: 224 | |
input_dim: 224 | |
layer { | |
bottom: "data" | |
top: "conv1" |
This file contains hidden or 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: "MOBILENET" | |
# transform_param { | |
# scale: 0.017 | |
# mirror: false | |
# crop_size: 224 | |
# mean_value: [103.94,116.78,123.68] | |
# } | |
input: "data" | |
input_dim: 1 | |
input_dim: 3 |
This file contains hidden or 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 <cstdint> | |
#include <fstream> | |
#include <string> | |
#include <vector> | |
#include <stdexcept> | |
inline std::vector<std::uint8_t> readBinaryFile(const std::string& filename) { | |
std::ifstream fin(filename, std::ios_base::in | std::ios_base::binary); | |
if (!fin) { | |
throw std::runtime_error{"Failed to open file"}; |
This file contains hidden or 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
#pragma once | |
#include <algorithm> | |
#include <cmath> | |
#include <cstdint> | |
#include <iomanip> | |
#include <sstream> | |
#include <string> | |
inline std::string hexdump(const void* buf, std::size_t size, std::size_t num_cols = 10) { |