Skip to content

Instantly share code, notes, and snippets.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@augustt198
augustt198 / dl.rb
Last active April 24, 2020 02:25
download lecture video from MIT ODL
if ARGV.length != 1
puts "Give one URL as argument"
exit
end
url = ARGV[0]
match = url.match(/\/videos\/([0-9a-f]+)/)
video_id = match[1] if match
if not video_id
puts "Could not find video ID"
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@augustt198
augustt198 / drl2dxf.py
Created May 29, 2017 04:20
DRL NC file to DXF
from dxfwrite import DXFEngine as dxf
from sys import argv
import re
if len(argv) < 2:
print("Need filename")
in_filename = argv[1]
out_filename = in_filename[:-4] + ".dxf"
request transaction id: 491794075
response transaction id: 491794075
connection id: -7209407626934330214
SIZE = 100
Peers (39):
bad: Connection refused
bad: Connection refused
bad: Connection refused
bad: Connection refused
bad: Connection refused
ahq
any
api
aqf
aqg
aqj
aqy
azj
bhq
bhv
public class VaseDrop {
private static int[][] matrix;
public static void main(String[] args) {
int k = 100;
int v = 2;
matrix = new int[k + 1][v + 1];
for (int[] row : matrix)
for (int i = 0; i < row.length; i++)
require 'httparty'
require 'json'
AUTH_URL = 'https://authserver.mojang.com/authenticate'
accounts = ARGV.flat_map do |arg|
File.read(arg).split("\n").map { |l| l.split ":" }
end
accounts.each do |user, pass|
Compiled from "String.java"
public final class java.lang.String implements java.io.Serializable, java.lang.Comparable<java.lang.String>, java.lang.CharSequence {
public static final java.util.Comparator<java.lang.String> CASE_INSENSITIVE_ORDER;
public java.lang.String();
Code:
0: aload_0
1: invokespecial #1 // Method java/lang/Object."<init>":()V
4: aload_0
5: iconst_0