Skip to content

Instantly share code, notes, and snippets.

View ThisGuyCodes's full-sized avatar

Travis Johnson ThisGuyCodes

View GitHub Profile
@ThisGuyCodes
ThisGuyCodes / default.nix
Created January 24, 2022 06:36
golang forced cross compiling for wasm
{ pkgs ? import <nixpkgs> {} }:
let
buildGoWasm = pkgs.buildGo117Module.override {
go = pkgs.go_1_17.overrideAttrs (_: {
GOOS = "js";
GOARCH = "wasm";
});
};
in

Keybase proof

I hereby claim:

  • I am thisguycodes on github.
  • I am thisguycodes (https://keybase.io/thisguycodes) on keybase.
  • I have a public key ASDskm_VrodMgqOgWYxjcJP_s2rO4C-SRkRSYDy9b5jHLAo

To claim this, I am signing this object:

Keybase proof

I hereby claim:

  • I am thisguycodes on github.
  • I am thisguy (https://keybase.io/thisguy) on keybase.
  • I have a public key ASBg8_5SDutnMi-jyLDvcmgruGJvtbsUmntc6U6DmyEEJwo

To claim this, I am signing this object:

@ThisGuyCodes
ThisGuyCodes / slack.groovy
Last active March 23, 2016 17:49
manual slack notifications jenkins dsl
configure {
it / 'publishers' / 'jenkins.plugins.slack.SlackNotifier'(plugin: "slack@2.0.1") {
teamDomain('prefix')
authToken('token')
buildServerUrl('http://URL/')
room('#ROOM')
startNotification(true)
notifySuccess(true)
notifyAborted(true)
notifyNotBuilt(true)
resp, err := ec2Svc.SomeMethod("one field", 2, true).SetFirstField(nil).Send()
[0, 0, 0, 0]
[0, 1, 0, 0]
[0, 0, 0, 1]
[0, 0, 0, 0]
class Array
def new(size)
counter = 0
#some magic to set the array length to the size variable
while counter < size do
self[counter] = yield
counter = counter + 1
end
end
Array.new(4) do
return 5
end
Array.new(rows) do
return Array.new(columns)
end