Skip to content

Instantly share code, notes, and snippets.

View rawsh's full-sized avatar

Robert Washbourne rawsh

View GitHub Profile
location /isso {
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Script-Name /isso;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_pass http://localhost:8001;
}
bottombox.Append(ui.NewHorizontalBox(), false)
bottombox.Append(notificationbox, true)
bottombox.Append(ui.NewHorizontalBox(), false)
notificationbox.Append(ui.NewHorizontalBox(), false)
notificationbox.Append(message, false)
notificationbox.Append(ui.NewHorizontalBox(), false)
var pricelist = [];
for (var i=0; i < bs.length; i++) {
if(bs[i].childNodes[0].nodeValue === "Price:") {
if (bs[i].nextSibling.nodeValue.charAt(1) === "$") {
pricelist.push(parseInt(bs[i].nextSibling.nodeValue.substr(2)));
}
}
}
@rawsh
rawsh / humblenewtabsettings
Created September 29, 2017 03:13
humblenewtabsettings
{"column.0.0":"recent","column.0.1":"2","column.0.2":"1","column.0.3":"225","column.1.0":"28","column.2.0":"231","column.2.1":"320","column.2.2":"22","column.3.0":"21","column.3.1":"top","column.3.2":"closed","column.4.0":"apps","open.21":"true","open.225":"true","open.231":"true","open.28":"true","open.297":"true","open.320":"true","open.372":"true","open.apps":"true","open.devices":"true","open.recent":"true","open.top":"true","options.background_color":"#fdf6e3","options.font":"Segoe UI","options.font_color":"#657b83","options.font_size":"18","options.hide_options":"0","options.highlight_color":"#002B36","options.highlight_font_color":"#ffffff","options.highlight_round":"0","options.lock":"0","options.number_closed":"5","options.number_recent":"5","options.number_top":"5","options.shadow_color":"#002B36","options.show_3":"0","options.show_apps":"1","options.show_devices":"0","options.show_root":"0","options.show_weather":"0","options.theme":"Default","options.width":"1.292"}
<body style="background-image: url('{% if market.background %}{{ market.background.url }}{% endif %}')">
<!-- container -->
<div class="container">
<!-- header -->
{% include header_template %}
<!-- /header -->
<!-- static navbar -->
@rawsh
rawsh / file.md
Last active April 23, 2018 17:54
Content Aware Cropping Using a Neural Net

Photographers wade through thousands of photos every shoot, and some crops are far from optimal. A smart crop tool can assist these photographers, provide a baseline for them to work from, and automate the crops for many photos.

Reading trained network weights

A good algorithm for finding objects in photos is the YOLO algorithm (You Only Look Once). A pretrained network that works well is the darknet network by Joseph Chet Redmon. This can be imported into Mathematica as a binary file through this code [^1]:

leayReLU[alpha_] := ElementwiseLayer[Ramp[#] - alpha*Ramp[-#] &]
@rawsh
rawsh / ROCKS.md
Last active June 19, 2017 22:24
"Rocks" Todo app, currently in private beta

Rocks todo list app

I have been working on this app with Inturact for a few months. Our goal is to make a simple to use task list app where users can make sharable "guides". These guides can be exported to other task managers.

Homepage with "bucket" staging areas

@rawsh
rawsh / what.md
Created May 23, 2017 21:36
gpu passthrough *notes*

pci-stub.ids=10de:139a,8086:9d10,8086:9d14,1217:8621

Keybase proof

I hereby claim:

  • I am rawsh on github.
  • I am rawsh (https://keybase.io/rawsh) on keybase.
  • I have a public key ASC6BfTlO3iRqUj9pRvTZSw4t9SgYcsvVxoc4oWMUSFcCgo

To claim this, I am signing this object:

@rawsh
rawsh / readme.md
Last active March 22, 2017 21:22
find files using rofi and the "find" command

Use file:"./Scripts/rofi-file-browser.sh" in your modi.