Skip to content

Instantly share code, notes, and snippets.

View barhoring's full-sized avatar
💭
foo is boring I am Bar Horing

Bar Horing Amir barhoring

💭
foo is boring I am Bar Horing
View GitHub Profile
@barhoring
barhoring / index.js
Created October 2, 2021 18:28 — forked from zkat/index.js
npx is cool
#!/usr/bin/env node
console.log('yay gist')
@barhoring
barhoring / SetFileList.html
Created June 16, 2021 05:19 — forked from guest271314/SetFileList.html
Set the FileList of <input type="file"> to arbitrary File objects
<!DOCTYPE html>
<!-- guest271314 11-12-2017 -->
<!-- see https://stackoverflow.com/questions/47119426 -->
<html>
<head>
</head>
<body>
<script>
@barhoring
barhoring / dropdown.md
Created September 25, 2020 09:21 — forked from citrusui/dropdown.md
"Dropdowns" in Markdown
How do I dropdown?
This is how you dropdown.

<details>
<summary>How do I dropdown?</summary>
<br>
This is how you dropdown.
@barhoring
barhoring / advanced-formatting-github-markdown.md
Created September 25, 2020 09:13 — forked from apaskulin/advanced-formatting-github-markdown.md
Tips and tricks for more formatting options in GitHub Markdown

Advanced Formatting in GitHub Markdown

GitHub Flavored Markdown lets you create useful documents in GitHub and GitHub Enterprise using .md files. Like other varieties of markdown, GitHub Markdown tries to be as readable as possible in its raw form, resulting in an intentionally limited set of formatting options. However, these options can feel restrictive when dealing with complex content.

Although GitHub Markdown strips out most HTML tags, here are a few tricks that can give you more flexibility when formatting your documents. These advanced formatting options can make your documents more useable, but they come at the expense of plain text readability, so use with caution.

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).
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
@barhoring
barhoring / index.js
Created October 13, 2019 23:41 — forked from akexorcist/index.js
Axios post method requesting with x-www-form-urlencoded content type
const axios = require('axios')
const qs = require('querystring')
...
const requestBody = {
name: 'Akexorcist',
age: '28',
position: 'Android Developer',
description: 'birthdate=25-12-1989&favourite=coding%20coding%20and%20coding&company=Nextzy%20Technologies&website=http://www.akexorcist.com/',
@barhoring
barhoring / Group_UnGroup_Outline.EXCEL.yaml
Last active September 26, 2019 12:09 — forked from jiju-MS/Group&UnGroup (1).EXCEL.yaml
Create a new snippet from a blank template.
name: Group_UnGroup_Outline
description: Playing with Excel API.
host: EXCEL
api_set: {}
script:
content: |
$("#groupRow").click(() => tryCatch(groupRow));
$("#groupCol").click(() => tryCatch(groupCol));
$("#ungroupRow").click(() => tryCatch(ungroupRow));
$("#ungroupCol").click(() => tryCatch(ungroupCol));