Skip to content

Instantly share code, notes, and snippets.

View jarekb84's full-sized avatar
💭
I may be slow to respond.

Jerry Batorski jarekb84

💭
I may be slow to respond.
View GitHub Profile
(function() {
'use strict';
function addContainer() {
var container = $("<div id='tileHighlighter' style='position: fixed; top:0; right:0; height: 225px; width: 200px; background-color: white; padding-top: 5px' />");
var textArea = $("<textarea id='tileHighlighter__tileData' rows='15' />")
container.append(textArea)
var hilightTilesButton = $("<div><button id='tileHighlighter__process'>Highlight Tiles</button></div>")
@jarekb84
jarekb84 / gist:3b7656a22199fcd6efdc32b1d9dc7cba
Last active June 1, 2017 01:01
Compact/beaconed bot based iron ore to steel
0eNq1mt1u4joQx18F5ZqsPI4/e3le46iqAri7kULCJqE6VcW7H6fQ0l2ZeDwuV1ACP48n8/GPO2/Fpj26w9B0U/HwVjTbvhuLh3/firH52dXt/Nn0enDFQ9FMbl+si67ez39tXO2/WpzWRdPt3H/FA5zW0R+51m2nodmWz8ehq7fuy8/56XFduG5qpsadDXj/4/WpO+43bvD8v5deF4d+9F/3b/16HlFyvS5e/auYsX7hcb4wHpzblft+d2xdWc0LzYb+BecIuKDCKwQcqHARh4OhwiUCLqlwhYBzKlzH4ZbKNnG2orJtnF1R2cCicEZmx9OTbnc8O8n+hnhykuME4rlJD3CI5yY9NSGem/SiAvHcpJdDiCcnvZBDPDszWtA1O4d+0x/6YQo1CvXjclfZDxnEwO1uG8BdkhK+mnsYvKXbqXnx3KjV19x8rsepbLrRDZO/crvHcb/Wrhm8be8XeYh6zcq2/9mMk9/E9pfz/EM9js2LK72NL80uvA77WCdEFmh7weLtlSlOB53rdIXfhMRvQt9y+uB+H/1reAFxXeDyvafnpvVfPqu4D3X4yW6Gviv7YXbMtj/OqlOy02PIHpPkVMh1qkU7FR8YFcsIZLMQxxWgrdV4a3mKx2Wmw6sKvYUKvwVBCWJ+rxiuUgpDbgRX6LKQ4E9ND2CxFL8Gayu+gFU2wdm5NVgw7Abw1UIAIXiB3St4RUo5gFwlIdDlIKGnCUEPX1AL8Ssk2lp8/RUqxeE21+HX1B6Pm3Gq3+EBLf6hOCGsOIVBCFcuI7pV2GQhCX96VIUOMNg3CEkIHo2k6ewzinyv5DUV927XHPfl56KHvnULwi9sfJUkrUSm8SJVWWHurMxXVmHfpCThhUR3jU69r3rJ9CTFzDNNt8khuWC6YonaBREiCrK1S9jWlL6YmTuqSvTyUtorkQizS7CMBISlyqqSumBmYVUa3cfDXSfUx5Wh6Dh15X+vjlMpuvhiBtmhmqUKI0Qm65RmyzMLm+YoXVTy6iJpbugijX+
@jarekb84
jarekb84 / robinStats.js
Last active April 1, 2016 20:23
Reddit Robin Room Stats
function stats() {
var participants = $('.robin-room-participant').length;
var increase = $('.robin-room-participant.robin--vote-class--increase').length;
var novote = $('.robin-room-participant.robin--vote-class--novote').length;
var abandon = $('.robin-room-participant.robin--vote-class--abandon').length;
var stay = $('.robin-room-participant.robin--vote-class--continue').length;
console.log(
"Total USERS: " +participants
+ " ::GROW: " + increase
@jarekb84
jarekb84 / gist:1b7960838cef525e33fa
Created May 17, 2015 16:13
app.config transform
<Target Name="UpdateAppConfigBeforeRun" BeforeTargets="Build">
<Message Text="Configuration: $(Configuration): App.template.$(Configuration).config"/>
<Exec Command="attrib -r App.config" />
<TransformXml Source="App.template.config"
Transform="App.template.$(Configuration).config"
Destination="App.config" />
</Target>

Git

Deletes all tags in local repo (source)
git tag -l | xargs git tag -d

Compares local and remote repo in diff tool
git difftool --dir-diff

@jarekb84
jarekb84 / goldenminerJunkSeller.js
Created October 31, 2013 00:53
Sells junk items automatically on the js game http://goldenminer.org Comment out the items you don't want sold, or add a new item to the array for items missing.
(function(){
//For todays date;
Date.prototype.today = function(){
return this.getFullYear() + "/" + (((this.getMonth()+1) < 10)?"0":"") + (this.getMonth()+1) +"/"+ ((this.getDate() < 10)?"0":"") + this.getDate()
};
//For the time now
Date.prototype.timeNow = function(){
return ((this.getHours() < 10)?"0":"") + this.getHours() +":"+ ((this.getMinutes() < 10)?"0":"") + this.getMinutes() +":"+ ((this.getSeconds() < 10)?"0":"") + this.getSeconds();
};