Based on @VisioN's profile signature in StackOverflow, turned into a configurator that anyone can use.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
MIT License | |
Copyright (c) 2018 Jason Sperske | |
Permission is hereby granted, free of charge, to any person obtaining a copy | |
of this software and associated documentation files (the "Software"), to deal | |
in the Software without restriction, including without limitation the rights | |
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
copies of the Software, and to permit persons to whom the Software is | |
furnished to do so, subject to the following conditions: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<meta content="text/html; charset=UTF-8" http-equiv="content-type"> | |
<title>Textarea Highlighter</title> | |
<script src="//code.jquery.com/jquery-1.11.0.js" type="text/javascript"></script> | |
<style type="text/css"> | |
#Status, #Highlighter { | |
width: 96%; | |
height: 250px; | |
font-family: Helvetica, Arial, 'lucida grande', tahoma, verdana, arial, sans-serif; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Game_Music_Emu 0.6.0. http://www.slack.net/~ant/ | |
#include "Wave_Writer.h" | |
#include <assert.h> | |
#include <stdlib.h> | |
/* Copyright (C) 2003-2006 by Shay Green. Permission is hereby granted, free | |
of charge, to any person obtaining a copy of this software and associated | |
documentation files (the "Software"), to deal in the Software without |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var Node = function(name, left, right) { | |
this.name = name; | |
this.left = left; | |
this.right = right; | |
}, | |
findDeepest = function(node, depth) { | |
var left, right, depth = depth || 0; | |
if(typeof node !== 'undefined') { | |
left = findDeepest(node.left, depth+1); | |
right = findDeepest(node.right, depth+1); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var paint = function (posts, colors, display) { | |
var painter = function (posts, colors, fence, count, display) { | |
var color, total = count; | |
if (posts === 0) { | |
//Would you like to see them? Pass a display function | |
if(display) { | |
display(fence); | |
} | |
return 1; | |
} else { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(ns Russian) | |
(defn multiply [& args] | |
(defn russian_multiply [a b p] | |
(cond | |
(> a 0) (russian_multiply (bit-shift-right a 1) (bit-shift-left b 1) (+ p (if (= (mod a 2) 1) b 0))) | |
:else p)) | |
(defn flip [a] (inc (bit-not a))) | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*jslint bitwise: true */ | |
var multiply = function () { | |
'use strict'; | |
var fn = function (a, b, product) { | |
if (a > 0) { | |
return fn(a >> 1, b << 1, product + (a % 2 === 1 ? b : 0)); | |
} | |
return product; | |
}, | |
factors = Array.prototype.slice.call(arguments), |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Image, ImageDraw | |
box_height = 2 | |
box_width = 6 | |
box_gap_height = 3 | |
box_gap_width = 2 | |
background = (0,0,0) | |
level_background = (119,120,123) | |
peeks = (237,26,59) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.ArrayList; | |
import java.util.List; | |
public class PrimeFactorsOf { | |
public static void main(String ... args) { | |
System.out.println(primeFactorsOf(19252389595L)); | |
} | |
static List<Long> primeFactorsOf(long val) { | |
long n = val; |