Skip to content

Instantly share code, notes, and snippets.

@benthurley82
benthurley82 / Main.class
Created April 11, 2019 10:54
FizzBuzz test in Java created by benthurley82 - https://repl.it/@benthurley82/FizzBuzz-test-in-Java
����48




!
" #$
%&'(<init>()VCodeLineNumberTablemain([Ljava/lang/String;)V StackMapTable)
SourceFile Main.java java/lang/StringBuilder *+Fizz ,-Buzz) ./ 012 345 67Mainjava/lang/Objectjava/lang/Stringappend-(Ljava/lang/String;)Ljava/lang/StringBuilder;toString()Ljava/lang/String;length()IvalueOf(I)Ljava/lang/String;java/lang/SystemoutLjava/io/PrintStream;java/io/PrintStreamprintln(Ljava/lang/String;)V *�� �Y<d�SMp��Y�,���Mp��Y�,���M,� ��
M� ,� �����.  %+ ? F KRX��" � 
@benthurley82
benthurley82 / go.mod
Created April 11, 2019 10:53
FizzBuzz test in Go created by benthurley82 - https://repl.it/@benthurley82/FizzBuzz-test-in-Go
module main
go 1.12
@benthurley82
benthurley82 / customBindings.js
Last active December 25, 2015 01:09
A first attempt at a knockout custom binding. This one will display an array of messages in a twitter bootstrap alert box. The priority option allows you to choose the type of alert that is displayed. jQuery animations are used to make the alert slide in and fade out. http://bthurley.wordpress.com/2013/10/08/a-first-knockout-custom-binding-to-di…
define(["jquery", "knockout"], function($, ko)
{
"use strict";
/**
* Binds an observable array to a dismissable alert box
*/
ko.bindingHandlers.alertList =
{
init: function(element, valueAccessor, allBindingsAccessor, viewModel, bindingContext)
{