Skip to content

Instantly share code, notes, and snippets.

def html5elements
html5 = %%
<!--...--> Defines a comment
<!DOCTYPE> Defines the document type
<a> Defines a hyperlink
<abbr> Defines an abbreviation or an acronym
<acronym> Not supported in HTML5. Use <abbr> instead.
Defines an acronym
<address> Defines contact information for the author/owner of a document
<applet> Not supported in HTML5. Use <embed> or <object> instead.
@gogocurtis
gogocurtis / min.md
Last active June 9, 2017 23:49 — forked from polinagogo/min.md
Making sure we have minification safe angular code

For regular Javascript name your default function

ie:

Instead of doing this:

export default function (campaignService) {
  return {
 scope: {},
@gogocurtis
gogocurtis / elm-rename-module
Created December 14, 2017 19:44
Rename Elm Module
#!/usr/bin/env ruby
require 'fileutils'
class RenameModule
attr_reader :current_module_name, :new_module_name, :dir
def initialize(current_module_name:,
new_module_name:,
dir:
)
@current_module_name = current_module_name
@new_module_name = new_module_name
High Level Reference:
https://en.wikipedia.org/wiki/Ident_protocol
For Lols:
http://www.clock.org/~fair/opinion/identd.html ( about how useless this protocol is)
Ident-D is an old protocol that runs on TCP port 113 traditionally - It’s hilariously easy to spoof.
This assignment creates a IDENTD (TCP) Plaintext Server for the IDENTD protocol that implements a spoof on the protocol.

Keybase proof

I hereby claim:

  • I am gogocurtis on github.
  • I am gogocurtis (https://keybase.io/gogocurtis) on keybase.
  • I have a public key ASBEyBz-YnEMxSF-uOW8GyclWKcaTL72d7p9gJxFFV3P4Qo

To claim this, I am signing this object:

# this is a cute pattern match
# get forms like
# $34.33
# 55
# €123
# €211
# 34 AUD
# 33 EUR
# etc