This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { Component, OnInit } from '@angular/core'; | |
import { ChatService } from './chat.service'; | |
@Component({ | |
selector: 'app-chat', | |
templateUrl: './chat.component.html', | |
styleUrls: ['./chat.component.scss'] | |
}) | |
export class ChatComponent implements OnInit { | |
messagesList: any; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// import XlsxStreamReader - it is an npm package ==== https://www.npmjs.com/package/xlsx-stream-reader | |
function readXlsx(file, headers) { | |
return new Promise((resolve, reject) => { | |
let resp_row = []; | |
var workBookReader = new XlsxStreamReader(); | |
workBookReader.on('error', function (error) { | |
throw error; | |
}); | |
workBookReader.on('sharedStrings', function () { |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function selectFile(event) { | |
let blobURL = window.URL.createObjectURL(event.target.files[0]) | |
// Do what you will with the blob | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
chrome.tabs.create( | |
{ | |
url: url, | |
}, | |
(tab) => { | |
chrome.tabs.executeScript( | |
tab.id, | |
{ | |
code: `var blobURL = "${blobURL}"; console.log("1:::")`, | |
}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function sendFile() { | |
var x = new XMLHttpRequest(); | |
x.open("GET", blobURL); | |
x.responseType = "blob"; | |
x.onload = function () { | |
var url = URL.createObjectURL(x.response); | |
localStorage.setItem("fileToProcess", url); | |
window.onload = function () { | |
document.getElementById("fetchImageFromBlob").click(); | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var Match, | |
calculate_operations, | |
consecutive_where, | |
create_index, | |
diff, | |
find_match, | |
find_matching_blocks, | |
html_to_tokens, | |
is_end_of_tag, | |
is_start_of_tag, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Print an introduction line in cyan | |
printf "\033[0;36mPre-commit hook - For Checking Tabs in Golang Files...\033[0m \n" | |
# Grab feed of staged files | |
files=$(git diff --name-only --cached -- "*.go") | |
numfiles=$( printf '%s' "$files" | grep -c '^' ) | |
if [ $numfiles -eq 0 ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"recommendations": [ | |
"CoenraadS.bracket-pair-colorizer", | |
"mikestead.dotenv", | |
"oderwat.indent-rainbow", | |
"robertohuertasm.vscode-icons", | |
"esbenp.prettier-vscode", | |
"jsynowiec.vscode-insertdatestring", | |
"alefragnani.project-manager", | |
"codezombiech.gitignore", |