I hereby claim:
- I am kidgodzilla on github.
- I am futhey (https://keybase.io/futhey) on keybase.
- I have a public key whose fingerprint is E65C 7E23 BD6C 2A14 3559 AD07 A364 DD33 53CC AD03
To claim this, I am signing this object:
| <form action="https://mailthis.to/example" method="POST" encType="multipart/form-data"> | |
| <h3>Contact Form (example)</h3> | |
| <!-- Name --> | |
| <input type="email" name="name" placeholder="Your name"> | |
| <!-- Email --> | |
| <input type="email" name="email" placeholder="[email protected]"> | |
| <!-- Phone Number --> | |
| <input type="text" name="phone" placeholder="+1 (255) 555-5555"> | |
| <!-- Textarea (Message) --> | |
| <textarea name="message" placeholder="Enter your message here" style="height:90px"></textarea> |
| $('img').each(function () { | |
| var w = $(this).width(); | |
| var h = $(this).height(); | |
| var nw = $(this).prop('naturalWidth'); | |
| var nh = $(this).prop('naturalHeight'); | |
| var s = $(this).attr('src') || $(this).attr('_src'); | |
| if (s.indexOf('://') === -1) { | |
| var pn = location.pathname; | |
| pn = pn.split('/'); |
| <script> | |
| (function() { | |
| window.Smallchat = { | |
| config: { | |
| "slackTeamId": "T4Z8BNW22", | |
| "scChannelId": "-Ki28NFzPezMcBRn19Da", | |
| "slackChannelId": "G51S6B4J3", | |
| "uid": "-Ki28DCbmqvLWP7mK_93" | |
| }, | |
| appearance: { |
I hereby claim:
To claim this, I am signing this object:
| // ES5 :) | |
| function isPrime (n) { | |
| for (i = 2; i < n; i++) | |
| if (n % i === 0) return false | |
| return true | |
| } | |
| // ES6 (readable) | |
| isPrime = n => { for (i = 2; i < n; i++) if (n % i === 0) return false; return true } |
| /** | |
| * Performance Checking | |
| * | |
| * Will enable and disable a flag on the window object | |
| * When Javascript performance suffers, so that optional features | |
| * Can be Disabled or delayed | |
| */ | |
| (function () { | |
| var lastTimestamp = + new Date(); |
| // Example config for 9-5, M-F, PST (US) | |
| var config = { | |
| 0: { | |
| open: 1, | |
| close: 0 | |
| }, | |
| 1: { | |
| open: 9, | |
| close: 17 | |
| }, |
| // This problem was inspired by this original tweet by Max Howell: | |
| // Google: 90% of our engineers use the software you wrote (Homebrew), but you can’t invert a binary tree on a whiteboard so fuck off. | |
| // So, let's invert a binary tree in Javascript | |
| // Original Tree | |
| // 4 | |
| // / \ | |
| // 2 7 | |
| // / \ / \ |
| import Ember from 'ember'; | |
| export default Ember.Controller.extend({ | |
| appName: 'Ember Twiddle', | |
| actions: { | |
| addFriend: function () { | |
| var friend = this.store.createRecord('friend', { | |
| name: this.get('name'), | |
| age: this.get('age'), | |
| location: this.get('location') |
| import Ember from 'ember'; | |
| export default Ember.Controller.extend({ | |
| appName: 'Ember Twiddle' | |
| }); |