Skip to content

Instantly share code, notes, and snippets.

View airyland's full-sized avatar
☀️
Working from home

Airyland airyland

☀️
Working from home
View GitHub Profile
@connor11528
connor11528 / companies-with-ai-domain-names.tsv
Last active June 29, 2024 12:56
Ultimate list of companies that have ".ai" domain names.
Company Name Website HQ City HQ State Year Founded Employbl ID
Salespeak salespeak.ai Palo Alto CA 2023 17614
Reworkd reworkd.ai San Francisco CA 2023 17629
Invoke AI invoke.ai Atlanta GA 2023 17734
Gushwork gushwork.ai Lewes DE 2023 17763
Jobright jobright.ai Santa Clara CA 2023 17731
HoundDog.ai hounddog.ai San Francisco CA 2023 17753
Monster API monsterapi.ai San Francisco CA 2023 17691
Quiller quiller.ai Chicago IL 2023 17644
CalmWave calmwave.ai Seattle WA 2022 16888
@Nilpo
Nilpo / getExternalIP.html
Created January 1, 2016 10:52
Use WebRTC to get an external IP address in JavaScript. https://jsfiddle.net/Nilpo/9qfo46ac/
<!DOCTYPE html>
<html lang="en">
<head>
<title>What is my IP?</title>
</head>
<body>
<p>External IP: <span id="result"></span></p>
<iframe id="iframe" sandbox="allow-same-origin" style="display: none"></iframe>
<script>
@RJustice
RJustice / demo
Created June 4, 2014 04:49
temp
$(".overlayLink").bind("mouseenter mouseleave",function(e){
/** the width and height of the current div **/
var w = $(this).width();
var h = $(this).height();
/** calculate the x and y to get an angle to the center of the div from that x and y. **/
/** gets the x value relative to the center of the DIV and "normalize" it **/
var x = (e.pageX - this.offsetLeft - (w/2)) * ( w > h ? (h/w) : 1 );
var y = (e.pageY - this.offsetTop - (h/2)) * ( h > w ? (w/h) : 1 );
@facultymatt
facultymatt / roles_invesitgation.md
Last active April 16, 2024 09:31
Roles and permissions system for Nodejs
@dypsilon
dypsilon / frontendDevlopmentBookmarks.md
Last active July 7, 2024 19:32
A badass list of frontend development resources I collected over time.
@BrendanEich
BrendanEich / gist:5753666
Created June 11, 2013 00:36
ES6 version of Peter Norvig's Sudoku solver originally written in Python
// XXX should be standard (and named clone, after Java?)
Object.prototype.copy = function () {
let o = {}
for (let i in this)
o[i] = this[i]
return o
}
// Containment testing for arrays and strings that should be coherent with their iterator.
Array.prototype.contains = String.prototype.contains = function (e) {
@neekey
neekey / gist-blog-browser-js-error-catch-summary.md
Last active July 31, 2020 10:14
浏览器错误捕捉总结

捕捉浏览器中的JS运行时错误,主要通过监听window.onerror来实现。但是对于不同的脚本执行方式以及不同的浏览器,能捕获到的信息会有区别。

window.onerror 讲接收3个参数:

  • msg:错误描述,比如:a is not defined
  • url:出错脚本所在的url
  • lineNumber:出错脚本的行数

本文将对不同浏览器和不同的脚本执行方式进行测试,并总结这些区别。

@yyx990803
yyx990803 / frameworks.md
Created December 3, 2012 21:52
国内互联网公司的前端框架简介

百度:Tangram

基本上就是个百度版jQuery,2.0版本使用链式API,更像了。
配套的还有UI库Magic和模版引擎BaiduTemplate(和ejs很像)

腾讯:JX

理念在介绍里面写的很详细,代码清晰,注释丰富,可读性很好,但只有文档没有实例。
比较传统的大块头框架,本质上来说还是一堆工具方法和对象的堆积,提供了很基本的模块化的开发方式,但没有模块间的依赖关系支持。

@paulirish
paulirish / gist:4158604
Created November 28, 2012 02:08
Learn JavaScript concepts with recent DevTools features

Learn JavaScript concepts with the Chrome DevTools

Authored by Peter Rybin , Chrome DevTools team

In this short guide we'll review some new Chrome DevTools features for "function scope" and "internal properties" by exploring some base JavaScript language concepts.

Closures

Let's start with closures – one of the most famous things in JS. A closure is a function, that uses variables from outside. See an example:

@bang590
bang590 / stepEngine.js
Created October 22, 2012 09:29
stepEngine - simplify everyauth asynchronous resolution
var fs = require('fs'),
http = require('http');
var Promise = function(values) {
this._callbacks = [];
this._errbacks = [];
if (arguments.length > 0) {
this.fulfill.apply(this, values);
}
}