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
ssh -i ~/.ssh/key ec2-user@IP_ADDR "sudo tcpdump -i any -U -s0 -w - 'not port 22'" | /Applications/Wireshark.app/Contents/MacOS/Wireshark -k -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
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <unistd.h> | |
#include <fcntl.h> | |
#include <errno.h> | |
#include <string.h> | |
#include <pthread.h> |
Loading
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
import tensorflow as tf | |
import gym | |
stddev = 1.0 | |
render = True | |
monitor = True | |
best_weights = tf.Variable(tf.truncated_normal(shape=[4, 1])) | |
current_weights = tf.Variable(best_weights.initialized_value()) |
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
// | |
// NeuralNet.swift | |
// BestColor | |
// | |
// Created by Stevie Hetelekides on 9/15/15. | |
// Copyright (c) 2015 Expetelek. All rights reserved. | |
// | |
import Foundation |
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 <substrate.h> | |
%hook SBAppSliderController | |
- (BOOL)sliderScroller:(id)scrollingViewController isIndexRemovable:(unsigned int)index | |
{ | |
return YES; | |
} | |
- (void)sliderScroller:(id)scrollingViewController itemWantsToBeRemoved:(unsigned int)index |
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.util.*; | |
public class Polynomial | |
{ | |
private static final double ROOT_LEEWAY = 0.000000001; | |
private double[] coefficients; | |
private double remainder; | |
public Polynomial(double[] coefficients, double remainder) | |
{ | |
this.coefficients = coefficients; |
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.awt.Color; | |
import java.awt.Graphics; | |
import java.awt.Graphics2D; | |
import java.awt.Point; | |
import java.awt.event.MouseAdapter; | |
import java.awt.event.MouseEvent; | |
import javax.swing.JFrame; | |
import javax.swing.JPanel; | |
// Ported from C# - https://github.com/hetelek/BookFlip |
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
public class CountedItem<E> | |
{ | |
E item; | |
int count = 1; | |
public CountedItem(E item) | |
{ | |
this.item = item; | |
} | |
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.util.Arrays; | |
import java.util.Stack; | |
import java.util.LinkedList; | |
enum TokenType | |
{ | |
OPERATOR, RIGHT_PARENTHESE, LEFT_PARENTHESE, NUMBER, EQUALS, UNKNOWN | |
} | |
class Token |