I hereby claim:
- I am rafaell-lycan on github.
- I am rafaell (https://keybase.io/rafaell) on keybase.
- I have a public key ASCxOpy3ePX9eoIE39worlSlJh8tOO_cBZzJXZSXZm1_pgo
To claim this, I am signing this object:
angular.module('app',[]) | |
.directive('preventEnterSubmit', function () { | |
return function (scope, el, attrs) { | |
el.bind('keydown', function (event) { | |
if (13 == event.which) { | |
event.preventDefault(); // Doesn't work at all | |
window.stop(); // Works in all browsers but IE... | |
document.execCommand('Stop'); // Works in IE | |
return false; // Don't even know why it's here. Does nothing. | |
} |
a |
I hereby claim:
To claim this, I am signing this object:
import React from 'react'; | |
import { render } from 'react-dom'; | |
import Tabs from './Tabs'; | |
const App = () => { | |
return ( | |
<Tabs> | |
<Tabs.Tab label={'Tab 1'}> | |
<p>Content 1</p> | |
</Tabs.Tab> |
<!-- DNS prefetch --> | |
<link rel='dns-prefetch' href='//ajax.googleapis.com' /> | |
<link rel='dns-prefetch' href='//fonts.googleapis.com' /> |
A CSS, JS, and Handlebars combiner, compressor, and server
A middleware that knows how to combine, compress and serve CSS and JS files.
When the route is triggered, Web Combiner grab one of the params css
and js
to create the final result with those files if them exists, otherwise it throws an Error with status 404
.
/** | |
* Function getGreetingTime | |
* It returns a greet string based on the current time. | |
* @returns {string} | |
* | |
* Usage: | |
* | |
* const greetings = `Good ${getGreetingTime()}, James.` | |
* Assuming the time is 8pm, the output above will be "Good evening, James." | |
*/ |
I hereby claim:
To claim this, I am signing this object: