Skip to content

Instantly share code, notes, and snippets.

@edwanvi
edwanvi / Cat.java
Created February 5, 2018 17:33
Quick! Look at this cat!
public class Cat {
private String name;
private boolean fed;
public Cat(String n) {
this.name = n;
this.fed = false;
}
public void feed() {

Keybase proof

I hereby claim:

  • I am tkdberger on github.
  • I am magi093 (https://keybase.io/magi093) on keybase.
  • I have a public key ASBNnmDveIOaJ5r3w1ffVYJs_fKehkgC_QV3LIqHSk7eGwo

To claim this, I am signing this object:

@edwanvi
edwanvi / i3_config
Last active September 18, 2017 17:42
of course i still love you
for_window [class="^.*"] border pixel 0
for_window [title="tracker - .*"] floating enable
# This file has been auto-generated by i3-config-wizard(1).
# It will not be overwritten, so edit it as you like.
#
# Should you change your keyboard layout some time, delete
# this file and re-run i3-config-wizard(1).
#
# i3 config file (v4)
package me.itstheholyblack.vigilant_eureka.core;
import me.itstheholyblack.vigilant_eureka.blocks.tiles.LeyLineTile;
import net.minecraft.util.math.BlockPos;
import java.util.ArrayList;
public class PolySolver {
public ArrayList<BlockPos> solve(LeyLineTile te) {
buildscript {
repositories {
jcenter()
maven { url = "http://files.minecraftforge.net/maven" }
}
dependencies {
classpath 'net.minecraftforge.gradle:ForgeGradle:2.3-SNAPSHOT'
}
}
apply plugin: 'net.minecraftforge.gradle.forge'
*.color0: #1E242E
*.color1: #70DEAF
*.color10: #B68E9D
*.color11: #94B5A7
*.color12: #A6A2A2
*.color13: #CA8B9D
*.color14: #8ACBAA
*.color15: #E5E6C5
*.color2: #B68E9D
*.color3: #94B5A7
@edwanvi
edwanvi / math.go
Last active July 9, 2017 00:58
Prime number thing
// in ~/go/src/github.com/tkdberger/math
package math
import (
"math/big"
)
// LCM returns the least common multiple of a and b.
func LCM(a, b *big.Int) *big.Int {
z := big.NewInt(0)
@edwanvi
edwanvi / conkyrc.lua
Created February 15, 2017 16:27
Conky config for /r/unixporn
-- vim: ts=4 sw=4 noet ai cindent syntax=lua
--[[
Conky, a system monitor, based on torsmo
Any original torsmo code is licensed under the BSD license
All code written since the fork of torsmo is licensed under the GPL
Please see COPYING for details
-- vim: ts=4 sw=4 noet ai cindent syntax=lua
--[[
Conky, a system monitor, based on torsmo
Any original torsmo code is licensed under the BSD license
All code written since the fork of torsmo is licensed under the GPL
Please see COPYING for details

Copy-paste of comment:

Hello Julian Assange,

In recent months, there has been some concern to your well-being following the events of the October 17th blackout. Would you please reply with a signed message that includes the contents below?

1) State that you are alive and well, and in no serious harm.

2) The current date and time.