Skip to content

Instantly share code, notes, and snippets.

View barhoring's full-sized avatar
💭
iambar

Bar Horing barhoring

💭
iambar
View GitHub Profile
@barhoring
barhoring / index.html
Created October 24, 2019 17:14
React-Quill Demo
<div class="app">
</div>
@barhoring
barhoring / index.html
Created October 24, 2019 18:27
The Burger
<link href="https://fonts.googleapis.com/css?family=Pacifico&amp;subset=cyrillic,latin-ext" rel="stylesheet">
<div class="title"> The Burger</div>
<div class="burger">
<div class="bread-top"></div>
<div class="lettuce">
<svg height="40" width="300">
<path d="M 20 32 q 11 -11 22 0 q 11 11 22 0 q 11 -11 22 0 q 11 11 22 0 q 11 -11 22 0 q 11 11 22 0 q 11 -11 22 0 q 11 11 22 0 q 11 -11 22 0 q 11 11 22 0 q 11 -11 22 0 q 11 11 22 0 l -12 -30 l -243 0 z" stroke="#6B3952" stroke-width="7" fill="#ADCE7B"/>
</svg>
</div>
<div class="tomatoes">
@barhoring
barhoring / food-places-in-forest-hills.markdown
Created October 24, 2019 18:32
Food places in Forest Hills
@barhoring
barhoring / index.html
Last active October 26, 2019 18:26
#webdev series - Colorful text animation #updated
<div class="container">
<span class="txt anim-text-flow">best places to eat in tlv</span>
</div>
<a target="_blank" href="https://twitter.com/hendrysadrak">@hendrysadrak</a>
@barhoring
barhoring / getDirectorySorted.js
Created February 15, 2020 05:46
prints a directory contents sorted by modification date
const fs = require("fs");
const path = require("path");
const dirName = "./";
const dirPath = path.join(__dirname, dirName);
fs.readdir(dirPath, function(err, files) {
files = files
.map(function(fileName) {
return {
@barhoring
barhoring / Script_Lab_Excel_Extension_Outline_Operations
Created February 18, 2020 08:24
Script Lab Excel Extension Outline Operations
name: Script_Lab_Excel_Extension_Outline_Operations
description: Create a new snippet from a blank template.
host: EXCEL
api_set: {}
script:
content: |
$("#group").click(() => tryCatch(group));
$("#groupColumns").click(() => tryCatch(groupColumns));
$("#ungroupRows").click(() => tryCatch(ungroupRows));
$("#ungroupColumns").click(() => tryCatch(ungroupColumns));
@barhoring
barhoring / promiseExecGit.js
Created February 28, 2020 22:19
simple node script to save `git branch` output to a file
const fs = require("fs");
/**
* Executes a shell command and return it as a Promise.
* @param cmd {string}
* @return {Promise<string>}
*/
function execShellCommand(cmd) {
const exec = require("child_process").exec;
@barhoring
barhoring / saveEscaped.js
Created March 9, 2020 12:12
Reads a file and saves a new escaped file
var fs = require("fs");
var data = "";
let [inputFileName, ouputFileName] = process.argv.slice(2);
[fName, fExtension] = inputFileName.split(".");
ouputFileName = ouputFileName
? ouputFileName
: `${fName}_escaped.${fExtension}`;
import React, { useState, useEffect } from "react";
const Planets = () => {
const [hasError, setErrors] = useState(false);
const [planets, setPlanets] = useState({});
useEffect(() => {
async function fetchData() {
const res = await fetch("https://swapi.co/api/planets/4/");
res

Frontend Masters: AWS for Frontend Engineers

You should have the following completed on your computer before the workshop:

  • Install the AWS CLI.
  • Have Node.js installed on your system. (Recommended: Use nvm.)
    • Install yarn with brew install yarn.
  • Create an AWS account. (This will require a valid credit card.)
  • Create a Travis CI account. (This should be as simple as logging in via GitHub).