Skip to content

Instantly share code, notes, and snippets.

@asiellb
asiellb / readSheet.js
Created December 27, 2020 22:03 — forked from sreepurnajasti/readSheet.js
Reading xlsx, csv files using exceljs in node
var Excel = require('exceljs');
var workbook = new Excel.Workbook();
workbook.xlsx.readFile('../../storage/cust_88ae31d4-47c5-4f70-980e-7b473ba20ef9/xls.xls')
.then(function() {
var worksheet = workbook.getWorksheet('Sheet1');
worksheet.eachRow({ includeEmpty: true }, function(row, rowNumber) {
console.log("Row " + rowNumber + " = " + JSON.stringify(row.values));
});
});
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Alpine Examples</title>
<script src="https://cdn.jsdelivr.net/gh/alpinejs/[email protected]/dist/alpine.min.js"
defer
></script>
@asiellb
asiellb / fish_shell_android_home.txt
Created August 4, 2020 22:05 — forked from gbero/fish_shell_android_home.txt
Export $ANDROID_HOME on MacOS with Fish shell
First :
$ touch ~/.config/fish/config.fish; nano ~/.config/fish/config.fish
Copy this in the file :
set --export ANDROID $HOME/Library/Android;
set --export ANDROID_HOME $ANDROID/sdk;
set -gx PATH $ANDROID_HOME/tools $PATH;
set -gx PATH $ANDROID_HOME/tools/bin $PATH;
@asiellb
asiellb / Setting ANDROID_HOME on Mac.
Created August 4, 2020 21:29 — forked from samuelfaj/Setting ANDROID_HOME on Mac.
It resolves the "Failed to find 'ANDROID_HOME' environment variable" error on Mac.
First, open Terminal and write:
cd /Users/$(whoami)/Library/Android/sdk; ls;
If it shown some files, you have Android SDK sucessfully installed.
If it shown: No such file or directory. You need to download and install Android SDK.
https://developer.android.com/studio/index.html?hl=pt-br
After...
Open Terminal and write:
@asiellb
asiellb / background.js
Created August 3, 2020 17:59 — forked from danharper/background.js
Bare minimum Chrome extension to inject a JS file into the given page when you click on the browser action icon. The script then inserts a new div into the DOM.
// this is the background code...
// listen for our browerAction to be clicked
chrome.browserAction.onClicked.addListener(function (tab) {
// for the current tab, inject the "inject.js" file & execute it
chrome.tabs.executeScript(tab.ib, {
file: 'inject.js'
});
});
Install python 3
create a virtualenv and then
pip install selenium
then install chrome driver:
brew tap homebrew/cask
brew cask install chromedriver
#EXTINF:-1, tvg-logo="https://i.imgur.com/qexUoll.png" , TVN
http://mdstrm.com/live-stream-playlist/57a498c4d7b86d600e5461cb.m3u8?
#EXTINF:-1, tvg-logo="https://i.imgur.com/0ibbHBb.png" , CHV
http://mi.chv.cl/playlist/stream.m3u8?s=hd
#EXTINF:-1, tvg-logo="https://i.imgur.com/MZUzeab.png" , MEGA
http://mdstrm.com/live-stream-playlist/53d2c1a32640614e62a0e000.m3u8
#EXTINF:-1, tvg-logo="https://i.imgur.com/IvyMi0N.png" , CANAL 13
@asiellb
asiellb / jssip.md
Created June 24, 2020 15:28 — forked from dtolb/jssip.md
JsSip Demo

#JSSIP with Catapult API ​ ##Prerequisites ​

  • Register for a Catapult (Bandwidth Application Platform) account here
  • Register a SIP domain
  • Create an endpoint/user
  • If you want to make calls to the PSTN (normal phones) you will need a server to handler events from Catapult
  • Make phone calls ​
@asiellb
asiellb / index.html
Created June 17, 2020 01:43 — forked from tristen/index.html
Full height sidebar with scrollable content
<!DOCTYPE html>
<html>
<head>
<meta charset='utf-8' />
<title></title>
<meta name='viewport' content='initial-scale=1,maximum-scale=1,user-scalable=no' />
<link href='https://www.mapbox.com/base/latest/base.css' rel='stylesheet' />
<link href='site.css' rel='stylesheet' />
</head>
<body>