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
import java.io.ByteArrayOutputStream; | |
import java.io.IOException; | |
import java.io.OutputStream; | |
import java.io.PrintStream; | |
import javax.swing.JFrame; | |
import javax.swing.JScrollPane; | |
import javax.swing.JTextArea; | |
public class RedirectAppOutputStream { |
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
using System.Collections; | |
using System; | |
using System.Xml; | |
using UnityEngine.Networking; | |
/* | |
Requirement: | |
Yandex Translate API key (https://tech.yandex.com/translate/) | |
Usage: |
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
using System.Collections.Generic; | |
using UnityEngine; | |
public class EnergySource : MonoBehaviour | |
{ | |
public float maxEdgeLength = 1.0f; | |
public string vertexTag = "GraphVertex"; | |
private TransformGraph<GameObject> graph = new TransformGraph<GameObject>(); |
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
// From https://github.com/varul29/SHT25_GoogleSheets_GoogleScript?source=post_page-----27912740e74a---------------------- | |
var filename = 'temp_log_sheet'; | |
var sheetName = 'values'; | |
var columns = ['time', 'celsius', 'location']; | |
function getSheet() { | |
var files = DriveApp.getFilesByName(filename); | |
var file; | |
var didCreateFile = 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
{ | |
"name": "latex-workshop", | |
"displayName": "LaTeX Workshop", | |
"description": "Boost LaTeX typesetting efficiency with preview, compile, autocomplete, colorize, and more.", | |
"icon": "icons/icon.png", | |
"version": "8.7.1", | |
"publisher": "James-Yu", | |
"license": "MIT", | |
"homepage": "https://github.com/James-Yu/LaTeX-Workshop", | |
"repository": { |
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
#!/usr/bin/env python3 | |
import cv2 | |
import tensorflow as tf | |
import tensorflow_hub as hub | |
import time | |
module_handle = 'https://tfhub.dev/google/object_detection/mobile_object_localizer_v1/1' | |
print('loading object detection model...') |
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
import cv2 | |
cap = cv2.VideoCapture(0) | |
tracker = cv2.TrackerMOSSE_create() | |
roi = None | |
while True: | |
_, frame = cap.read() |
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
import socket | |
import argparse | |
parser = argparse.ArgumentParser() | |
parser.add_argument('-m', '--mode', choices=['sender', 'receiver'], required=True) | |
arguments = parser.parse_args() | |
is_sender = arguments.mode == 'sender' | |
receiver_port = 1234 | |
receive_size = 1024 |
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
// ==UserScript== | |
// @name 2xYT | |
// @version 0.1 | |
// @description Automatically sets the playback speed to 2x on YouTube.com | |
// @match *://www.youtube.com/* | |
// @grant none | |
// ==/UserScript== | |
(function() { | |
'use strict'; |
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
#!/usr/bin/env python3 | |
import os, re, random | |
clear = lambda: os.system('cls' if os.name == 'nt' else 'clear') | |
def print_header(): | |
print(' _____ _ _____ _____ ') | |
print(' |_ _(_)_|_ _|_ _ _|_ _|__ ___ ') | |
print(' | | | / _|| |/ _` / _|| |/ _ \/ -_)') |
OlderNewer