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 A575 0F6C BE03 2FC7 96FB E09F 1140 EB6D DE6C 23DE

To claim this, I am signing this object:

@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;
@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 / 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 / keybase.md
Last active September 12, 2024 07:53

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 F133 C52E 657D F845 1697 A445 2AEE 9D6F A006 6D51

To claim this, I am signing this object: