This file contains hidden or 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
| require 'formula' | |
| class Libstemmer < Formula | |
| # upstream is constantly changing the tarball, | |
| # so doing checksum verification here would require | |
| # constant, rapid updates to this formula. | |
| head 'http://snowball.tartarus.org/dist/libstemmer_c.tgz' | |
| homepage 'http://snowball.tartarus.org/' | |
| end |
This file contains hidden or 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> | |
| <body> | |
| <div class="title"> | |
| <h2>I AM AN ANIMU</h2> | |
| </div> | |
| <div class="collector"> | |
| <div class="porn"> | |
| </div> | |
| <div class="wordstuff"> | |
| there were dirty thoughts in her head because somebody put paper in it. |
This file contains hidden or 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
| #content {margin: 0 auto !important;width: 1000px !important;}#filter {background-color: #eee !important;border: none !important;border-radius: 0 !important;padding: 10px 20px !important;}#filter .thread_tags {margin: 0 !important;margin-top: 20px !important;padding: 0 !important;}#filter .toggle_tags {padding: 0 !important;}#nav_purchase, #navigation {border: 0 !important;}#navigation {border-bottom: 5px solid #eee !important;padding-bottom: 20px !important;}* {background: none !important;background-image: none !important;box-shadow: none !important;font-family: "Helvetica Neue" !important;text-shadow: none !important;}*, *:before, *:after {box-sizing: border-box !important;}.bbc-block {border: 1px solid #d0d0d0 !important;border-radius: 0 !important;box-shadow: none !important;margin: 0 !important;}.bbc-spoiler {background-color: #888 !important;color: #888 !important;}.bbc-spoiler:hover {background-color: #ddd !important;color: #000 !important;}.forumbar, .threadbar {background-color: #eee !important;borde |
This file contains hidden or 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
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta charset="UTF-8" /> | |
| <title>Hello World</title> | |
| <script src="https://unpkg.com/react@latest/dist/react.js"></script> | |
| <script src="https://unpkg.com/react-dom@latest/dist/react-dom.js"></script> | |
| <script src="https://unpkg.com/babel-standalone@6.15.0/babel.min.js"></script> | |
| <script src="https://code.jquery.com/jquery-3.1.1.min.js"></script> | |
| </head> |
This file contains hidden or 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
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta charset="utf-8"> | |
| <meta name="viewport" content="width=device-width"> | |
| <title>JS Bin</title> | |
| <style id="jsbin-css"> | |
| .container-field { | |
| width: 500px; | |
| height: 200px; |
This file contains hidden or 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
| class Integer # so that 3.to_roman() will return a result | |
| Roman = 'IVXLCDM' # cardinally ordered roman numerals | |
| def to_roman | |
| raise "Number too large" if self > 4999 # string does not contain characters for > 4999 | |
| n, nsize = self, Math.log10(self).to_i # n = this number, nsize = number of digits in this number | |
| nsize.downto(0).map do |pow| # pow = each digit from the left (i.e. 4,3,2,1 for 1000) - 1 (zero is the first index) | |
| mid = pow << 1 # mid = pow * 2 (so that for every multiple of 10, there are two roman characters) | |
| current = n / (10 ** pow) # current = T where Txxx is the current number and pow is digits from right; i.e. 1234 and pow is 3 -> T == 1 | |
| n = n % (10 ** pow) |
This file contains hidden or 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
| # Cheaty idea | |
| class Conway | |
| def initialize(height, width) | |
| @height = height | |
| @width = width | |
| @cells = [0] * width | |
| end | |
| def set_cell(x,y,v) # v is a boolean value | |
| if v |
This file contains hidden or 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
| <!doctype html> | |
| <html> | |
| <head> | |
| <title>Page Title</title> | |
| <style> | |
| #header { position: relative; top: 0; left: 0; width: 100%; height: 100px; overflow: hidden; | |
| border: 1px solid black; text-align: center; box-shadow: 5px 5px 10px #aa0;} | |
| #header img { width: 100px; position: absolute; top: 0; left: 0 } | |
| .content h1 { text-align: center; } | |
| .content .red { color: red } |
This file contains hidden or 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 find = (a) => document.querySelectorAll(a) | |
| var titleNode = find('.content h1')[0] | |
| const onLoad = function(){ | |
| initButton() | |
| find('.content p:last-child')[0].classList.add('red') | |
| } | |
| function initButton(e){ | |
| var clicked_times = 0 |
This file contains hidden or 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
| const $canvas = document.getElementById('art') | |
| const ctx = $canvas.getContext('2d') | |
| const $dump = document.getElementById('dump') | |
| const debug = (c) => $dump.value = JSON.stringify(c) | |
| const deg2rad = (angle) => angle * Math.PI / -180 | |
| class Hex { | |
| constructor (x,y,r=10){ | |
| this.r = r |