Skip to content

Instantly share code, notes, and snippets.

View yevbar's full-sized avatar

Yev Barkalov yevbar

View GitHub Profile
I'm making this gist for record keeping to make sure I know what's going on with my keydefs
Important keys:
- Control x2
- Shift x2
- Alt x2
- Windows (Win4) x2
- Space
- Enter
- Backspace
@yevbar
yevbar / domain_lookup.py
Created December 18, 2019 06:45
Given a TLD will search for all single letter domans that are _not_ registered
from string import ascii_lowercase
import subprocess
import sys
from time import sleep
tld = sys.argv[1] # ie python main.py capital
for c in ascii_lowercase:
output = subprocess.check_output("whois {}.{}".format(c, tld), shell=True)
if "Domain not found" in str(output):
print("The domain {}.{} is available".format(c, tld))

ChromeExtension -

  • When "annotate" triggered
    • Copy selected text
    • Copy current URL
    • Copy document.scroll.X and document.scroll.X
    • Include other data needed for web annotation standards
    • Send to memex.com (or whichever endpoint is for gathering them
    • Save ^ data to a local directory (each its own file like maildir)
    • Display popup with "recommended" annotations
  • Separate application page (chrome extensions have these at chrome://...)
var path = require("path");
var config = {
/*
* app.ts represents the entry point to your web application. Webpack will
* recursively go through every "require" statement in app.ts and
* efficiently build out the application's dependency tree.
*/
entry: ["./src/app.ts"],
<script type="text/javascript" src="https://threejs.org/build/three.min.js"></script>

While you can write web applications and text-based ensembles in Repl.it, sometimes it's nice to be able to just put together a simple HTML/CSS website using the same awesome editor!

Making your first website tutorial!

This is a guide for making your very first website using HTML and CSS and, if you follow the tutorial, you should end up with something that looks like this:

Though, to succeed with this tutorial, your final website should not look like that. To succeed at this tutorial, you should branch off and get creative with the code you write because you won't be just making just a website but your website!

<ol>
{postsArray.map(post => {
return <Post key={postsArray.indexOf(post)} post={post}/>
})}
</ol>
{
"styled-jsx": "latest"
}
<Loading incomplete={posts.length < postsIds.length} />
const Loading = ({ incomplete }) => {
return incomplete ? null : (
<div>
<div id="loading">
<img src="https://media.giphy.com/media/a6OnFHzHgCU1O/giphy.gif" alt="Loading"/>
</div>
<style jsx>{`
#loading {
text-align: center;
}