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 / 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 / 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 / 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 / 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 / food-places-in-forest-hills.markdown
Created October 24, 2019 18:32
Food places in Forest Hills
@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 / index.html
Created October 24, 2019 17:14
React-Quill Demo
<div class="app">
</div>
@barhoring
barhoring / Group&UnGroup (1).EXCEL.yaml
Last active October 17, 2019 14:32
Create a new snippet from a blank template.
name: Group&UnGroup (1)
description: Create a new snippet from a blank template.
host: EXCEL
api_set: {}
script:
content: |
$("#group").click(() => tryCatch(group));
$("#groupColumns").click(() => tryCatch(groupColumns));
$("#ungroup").click(() => tryCatch(ungroup));
$("#showdetails").click(() => tryCatch(showdetails));
@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 / data.json
Last active October 24, 2019 12:31
Joker affairs fears from antartica
{"data":[{"name":"ynet","url":"www.ynet.co.il","about":"about this site..."},{"name":"test1223","url":"ynet.co.il","about":"about this site..."},{"name":"escpae","url":"prison-break.com","about":"about this site..."},{"name":"southpark","url":"spk.com","about":"about this site..."},{"name":"arnold.com","about":"about this site..."},{"name":"test","url":"https://www.walla.co.il","about":"new site"},{"name":"Tuta","url":"https://www.tuta.co.il","about":"joke by Liz"},{"name":"Youtube","url":"https://www.youtube.com","about":"videos"},{"name":"Google","url":"https://www.google.com/","about":"search engine"},{"name":"Unsplash","url":"https://www.unsplash.com/","about":"free quality photo stock"},{"name":"Instagram","url":"https://www.instagram.com/","about":"social media"},{"name":"NYtimes","url":"https://www.nytimes.com/","about":"news"},{"name":"Google","url":"https://www.google.com/","about":"search engine"},{"name":"aAS","url":"QWQWQW","about":"about"},{"name":"GOOOL","url":"MICRO","about":"about"},{"name":"G