Skip to content

Instantly share code, notes, and snippets.

View Meshiest's full-sized avatar
🍰

Isaac H Meshiest

🍰
View GitHub Profile
@Meshiest
Meshiest / quadtree.rb
Created February 18, 2016 20:16
An algorithm that simulates a quad tree to group similar values on a grid
def printTree tree
puts tree.map{|a|a.map{|b|(b[0] != 0 ? b[1] : '.')}.join}.join("\n")
end
def createTree str
# split up the grid and give node each value a scale of 1
# 2^(n-1) will represent dimension of a node, so scale 1 is size 1x1, 3 is 4x4..
grid = str.split("\n").map{|a|a.chars.map{|b|[1,b]}}
size = [grid.length, grid[0].length].max
table.md-table.md-row-select tbody.md-body > tr.md-row:not([disabled]):hover {
background-color: rgba(50,50,50, 0.1) !important;
}
table.md-table.md-row-select tbody.md-body > tr.md-row.md-selected {
background-color: rgba(50,50,50, 0.2) !important;
}
table.md-table td.md-cell {
font-size: 13px;
<md-table-container>
<table md-table md-row-select ng-model="selected">
<thead md-head md-order="myOrder">
<tr md-row>
<th md-column md-order-by='someAttribute'>Icon</th>
<th md-column>Foo</th>
<th md-column>URL</th>
</tr>
</thead>
<!-- you will have a theme for every single different type -->
package main
import (
"fmt"
"strings"
"net/http"
"io/ioutil"
"math/rand"
"time"
)
@Meshiest
Meshiest / blog.html
Created October 28, 2016 01:06
Automatically fetches blog posts from google blogger blogs (fill in blogId and apikey with respective ids)
<!DOCTYPE html>
<html>
<head>
<title>Test</title>
<script src='https://code.jquery.com/jquery-3.1.1.min.js'></script>
<style type="text/css">
* {
padding: 0;
margin: 0;
}
@Meshiest
Meshiest / annoy.js
Created February 9, 2017 02:56
Groupme like bot annoyance
/*
* Paste in console (f12 or inspect element or ctrl-shift-c) while in a chat for maximum harassment
* People who sent the last 5 messages will get notifications constantly
*/
var j = 1;
function range(start, count) {
return Array.apply(0, Array(count))
.map(function (element, index) {
@Meshiest
Meshiest / screenshot.sh
Created June 2, 2017 15:52
Screenshot Area on KDE/arch
#!/bin/bash
# Requires spectacle and xclip, stores last screenshot at /tmp/screenshot.png
# Screenshots a specified area and copies the content to clipboard
# Author: Meshiest
rm /tmp/screenshot.png
spectacle -rbnwo /tmp/screenshot.png
[[ -f /tmp/screenshot.png ]] && xclip -selection c -t image/png -i /tmp/screenshot.png

Auto Bridge

Conjures a block beneath and infront of the player

{spellName:"AutoBridge",uuidMost:-7555304362156670255L,validSpell:1b,spellList:[0:{data:{params:{_target:2},key:"operatorVectorExtractX"},x:2,y:1},1:{data:{params:{_target:2},key:"operatorEntityLook"},x:2,y:2},2:{data:{key:"selectorCaster"},x:2,y:3},3:{data:{params:{_target:3},key:"connector"},x:3,y:1},4:{data:{params:{_target:3},key:"operatorVectorExtractZ"},x:3,y:2},5:{data:{params:{_target:3},key:"operatorEntityPosition"},x:3,y:3},6:{data:{params:{_target:3},key:"connector"},x:4,y:1},7:{data:{params:{_x:1,_y:4,_z:3},key:"operatorVectorConstruct"},x:4,y:2},8:{data:{params:{_vector3:4,_vector2:3,_vector1:1},key:"operatorVectorSum"},x:4,y:3},9:{data:{params:{_time:0,_position:1},key:"trickConjureBlock"},x:4,y:4},10:{data:{key:"constantNumber",constantValue:"0"},x:5,y:2},11:{data:{params:{_x:1,_y:4,_z:2},key:"operatorVectorConstruct"},x:5,y:3},12:{data:{key:"constantNumber",constantValue:"0"},x:5,y:4},13:{data:{key:"constantNumber",constan

@Meshiest
Meshiest / style.css
Last active September 17, 2017 00:10
MrSeedbox Mal Style
/*
Stylesheet for MyAnimeList.net profiles
Copyright (C) 2017 Meshiest
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
@Meshiest
Meshiest / inclass1.html
Last active September 18, 2017 20:41
In class assignment 1
<!DOCTYPE html>
<html lang="en-US">
<head>
<title>Magical Table</title>
</head>
<body>
<table border="1">
<tr>
<td rowspan="2">
<a href="#">Link</a>