Skip to content

Instantly share code, notes, and snippets.

View JacobMillner's full-sized avatar

Jacob Millner JacobMillner

View GitHub Profile
@davidcalhoun
davidcalhoun / japan-jobs.md
Created July 31, 2011 01:53
Foreigner-friendly software companies in Japan
@rponte
rponte / git_log_better.sh
Created June 19, 2012 17:32
A better git log
git config --global alias.lg "log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --"
# more informations,
# http://coderwall.com/p/euwpig?i=3&p=1&t=git
@lolzballs
lolzballs / HelloWorld.java
Created March 22, 2015 00:21
Hello World Enterprise Edition
import java.io.FileDescriptor;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.OutputStream;
import java.io.PrintStream;
public class HelloWorld{
private static HelloWorld instance;
public static void main(String[] args){
instantiateHelloWorldMainClassAndRun();

Contributing

When contributing to this repository, please first discuss the change you wish to make via issue, email, or any other method with the owners of this repository before making a change.

Please note we have a code of conduct, please follow it in all your interactions with the project.

Pull Request Process

  1. Ensure any install or build dependencies are removed before the end of the layer when doing a
@SamCyanide
SamCyanide / helloworld.java
Last active May 27, 2017 07:46
Made by https://github.com/cory2067 | /u/Cory2067 on Reddit
import java.util.ArrayList;
public class HelloWorld {
public static final Integer a = 104;
private volatile static Object ob = "o";
public static void good() {
class NiceInnerClass { public NiceInnerClass(){System.out.print('e'); abstract class xx {}}}
Object object = new NiceInnerClass();
}
@Bahm
Bahm / mouse.py
Last active March 16, 2021 16:42
A python 3 version of SRL-6's _humanWindMouse from /lib/core/mouse.simba with modifications. PyMouse installed through PyUserinput: "pip3 install pyuserinput".
#!/usr/bin/env python3
import math
from pymouse import PyMouse
from random import randint
from time import sleep
class MouseMovementCalculator:
def __init__(self, gravity, wind, mouseSpeed, targetError):
self.gravity = gravity
@nikhita
nikhita / update-golang.md
Last active December 18, 2024 17:00
How to update the Go version

How to update the Go version

System: Debian/Ubuntu/Fedora. Might work for others as well.

1. Uninstall the exisiting version

As mentioned here, to update a go version you will first need to uninstall the original version.

To uninstall, delete the /usr/local/go directory by:

@posener
posener / go-table-driven-tests-parallel.md
Last active October 29, 2024 13:01
Be Careful with Table Driven Tests and t.Parallel()

Be Careful with Table Driven Tests and t.Parallel()

We Gophers, love table-driven-tests, it makes our unittesting structured, and makes it easy to add different test cases with ease.

Let’s create our table driven test, for convenience, I chose to use t.Log as the test function. Notice that we don't have any assertion in this test, it is not needed to for the demonstration.

func TestTLog(t *testing.T) {
	t.Parallel()
@sebmarkbage
sebmarkbage / The Rules.md
Last active December 7, 2024 18:30
The Rules of React

The Rules of React

All libraries have subtle rules that you have to follow for them to work well. Often these are implied and undocumented rules that you have to learn as you go. This is an attempt to document the rules of React renders. Ideally a type system could enforce it.

What Functions Are "Pure"?

A number of methods in React are assumed to be "pure".

On classes that's the constructor, getDerivedStateFromProps, shouldComponentUpdate and render.

@daxxog
daxxog / hamachi-ubuntu.sh
Last active June 26, 2023 12:53
install hamachi on ubuntu 18.04
#!/bin/bash
#curl -L tinyurl.com/gothamachi | sh
cd ~/Downloads
wget https://www.vpn.net/installers/logmein-hamachi_2.1.0.198-1_amd64.deb
sudo apt -y install ./logmein-hamachi_2.1.0.198-1_amd64.deb
sudo hamachi check-update
sudo hamachi login
echo now run ->>
echo sudo hamachi attach [email]