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 things | |
import subprocess | |
import pyautogui | |
import time | |
import pydirectinput | |
from pathlib import Path | |
print('might want to click on roblox focus') | |
time.sleep(5) | |
print(pyautogui.position()) |
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 1f00753130f44c0e29c34d95957f6eac2b2dcf45 Mon Sep 17 00:00:00 2001 | |
From: Leon Klingele <[email protected]> | |
Date: Tue, 29 Sep 2020 18:21:13 +0200 | |
Subject: [PATCH 1/2] apple-keychain-integration-other-changes | |
--- | |
Makefile.in | 16 +- | |
audit-bsm.c | 7 +- | |
auth.c | 2 +- | |
authfd.c | 25 ++ |
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
require "http" | |
require "uuid" | |
require "uuid/json" | |
class App | |
include HTTP::Handler | |
def call(context) | |
Fiber.yield # Simulate getting data from the DB | |
response_payload.to_json context.response |
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
diff --git a/src/exception.cr b/src/exception.cr | |
index cd4450c..570e2fd 100644 | |
--- a/src/exception.cr | |
+++ b/src/exception.cr | |
@@ -21,7 +21,11 @@ struct CallStack | |
makecontext_start = makecontext_end = LibDL.dlsym(LibDL::RTLD_DEFAULT, "makecontext") | |
while true | |
- ret = LibDL.dladdr(makecontext_end, out info) | |
+ ifdef cygwin |
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
require "./mess/*" | |
require "kemal" | |
require "json" | |
require "mysql" | |
require "pool/connection" | |
db = ConnectionPool.new(capacity: 25, timeout: 0.01) do | |
DB.open(ENV["DATABASE_URL"]) | |
end |
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
// The player | |
var player = netflix.cadmium.objects.videoPlayer(); | |
// Metadata about current episode -- ID and url to get frame at a specific time | |
var episodeId = netflix.cadmium.metadata.getActiveVideo().episodeId; | |
var imgRoot = netflix.cadmium.metadata.getActiveVideo().progressImageRoot; | |
// Generates URL of preview image for given timestamp | |
function getFrame(timestamp) { | |
var t = Math.floor(timestamp/10000).toString(10); |
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 ARGV.length != 2 | |
puts "syntax: dir_that_has_files_that_should_be_duplicated dir_that_should_have_those_files" | |
exit 1 | |
end | |
def all_files_in_dir dir | |
all_in = {} | |
Dir[File.expand_path(dir) + "/**/*"].each{|f| # need expand path or in windows Dir["a\b/*"] failz <sigh> | |
if File.file? f | |
filename = File.basename(f) |
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
diff --git a/source_code/DibHelper.cpp b/source_code/DibHelper.cpp | |
index 4bfbd94..c8a02fe 100644 | |
--- a/source_code/DibHelper.cpp | |
+++ b/source_code/DibHelper.cpp | |
@@ -165,7 +165,7 @@ boolean is_config_set_to_1(LPCTSTR szValueName) { | |
HKEY hKey; | |
LONG i; | |
i = RegOpenKeyEx(HKEY_CURRENT_USER, | |
- L"SOFTWARE\\screen-capture-recorder", 0, KEY_READ, &hKey); | |
+ L"SOFTWARE\\evp-capture", 0, KEY_READ, &hKey); |
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
require 'java' | |
class A < javax.swing.JFrame | |
def initialize *args | |
super(*args) | |
end | |
end | |
A.new |
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
package main | |
import "fmt" | |
import "strings" | |
// some ruby #map type things, in golang | |
// mostly taken from https://groups.google.com/forum/#!topic/golang-nuts/fgaeXCUEPC4 | |
// apparently calling this out with specific types is faster than defining it generically to use interfaces: http://comments.gmane.org/gmane.comp.lang.go.general/43076 | |
func _map(coll []string, f func(string) string) []string { | |
var newColl = make([]string, len(coll)) |
NewerOlder