Skip to content

Instantly share code, notes, and snippets.

View AienTech's full-sized avatar
😀
Looking to find something interesting to work on!

Aien AienTech

😀
Looking to find something interesting to work on!
View GitHub Profile

Keybase proof

I hereby claim:

  • I am aientech on github.
  • I am aientech (https://keybase.io/aientech) on keybase.
  • I have a public key whose fingerprint is D124 1886 874B EC6F 6670 433D 3249 0E67 FAB4 8A9A

To claim this, I am signing this object:

@AienTech
AienTech / MyComponent.js
Created February 16, 2018 20:40
_POST_NEXTJS
import React from "react";
export default class ThisIsAComponent extends React.Component {
Render() {
return (
<ul>
<li>Item 1</li>
<li>Item 2</li>
<li>Item 3</li>
<li>Item 4</li>
@AienTech
AienTech / HttpError.js
Created January 26, 2018 13:36
Most common HTTP error codes with a function to find error by status code
const codes = [
{
"status" : 400,
"title" : "Bad Request",
"message": "The request cannot be fulfilled due to bad syntax.",
},
{
"status" : 401,
"title" : "Unauthorized",
"message": "The request was a legal request, but requires user authentication.",
@AienTech
AienTech / browser.js
Created October 19, 2017 19:43
Check for browser name
var isOpera = (!!window.opr && !!opr.addons) || !!window.opera || navigator.userAgent.indexOf(' OPR/') >= 0;
var isFirefox = typeof InstallTrigger !== 'undefined';
var isSafari = /constructor/i.test(window.HTMLElement) || (function (p) { return p.toString() === "[object SafariRemoteNotification]"; })(!window['safari'] || (typeof safari !== 'undefined' && safari.pushNotification));
var isIE = /*@cc_on!@*/false || !!document.documentMode;
var isEdge = !isIE && !!window.StyleMedia;
var isChrome = !!window.chrome && !!window.chrome.webstore;
var isBlink = (isChrome || isOpera) && !!window.CSS;

Keybase proof

I hereby claim:

  • I am aientech on github.
  • I am aientech (https://keybase.io/aientech) on keybase.
  • I have a public key whose fingerprint is A575 0F6C BE03 2FC7 96FB E09F 1140 EB6D DE6C 23DE

To claim this, I am signing this object: