mindmap
root(DB)
SQL("SQL Databases")
SQLDB("Examples: MySQL, PostgreSQL, Oracle")
SQLDESC("Use Structured Query Language")
SQLSTORAGE("Data Stored in Tables")
SQLUSE("Best for Complex Queries and Transactions")
NOSQL("NoSQL Databases")
This file contains hidden or 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
| // ==UserScript== | |
| // @name X.com Tweet Deleter | |
| // @namespace http://tampermonkey.net/ | |
| // @version 1.1 | |
| // @description Easily delete tweets directly from your X.com profile! | |
| // @author You | |
| // @match https://x.com/* | |
| // @grant none | |
| // ==/UserScript== |
This file contains hidden or 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
| # -*- coding: utf-8 -*- | |
| """UniSyd_LangChain_Faiss.ipynb | |
| Automatically generated by Colaboratory. | |
| Original file is located at | |
| https://colab.research.google.com/drive/1STqfsfZoWWhL1lUTyo0QJVCidXDvd7B4 | |
| # DEPENDENCIES | |
| """ |
This file contains hidden or 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
| const { exec } = require('child_process'); | |
| const text = `Often we need to check a sequence of conditions and do something when one of them is true. For example, say you’re ordering Chinese food and you’re choosing what to eat. Your favorite Chinese dish is lemon chicken, so you’ll have that if it’s on the menu. If it’s not, you’ll have beef with black bean sauce. If that’s not on the menu, you’ll have sweet and sour pork. In the rare case that none of those options is available, you’ll have egg fried rice, because you know all the Chinese restaurants you go to will have that.` | |
| exec(`say -o hello.aiff '${text}'`, (error, stdout, stderr) => { | |
| if (error) { | |
| console.log(`error ${error}`); | |
| } | |
| if (stderr) { |
This file contains hidden or 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 findDuplicate(str) { | |
| let charArr = populate(256); | |
| let splitStr = str.split(''); | |
| for(let i = 0; i < splitStr.length; i++) { | |
| let charCode = splitStr[i].charCodeAt(); | |
| charArr[charCode]++; | |
| } | |
| return findDuplicates(charArr); | |
| } |
This file contains hidden or 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 askPolitely(sentence){ | |
| let comparator = "please?"; | |
| let _sentenceBreakDown = sentence.split(' '); | |
| const lastWord = _sentenceBreakDown[_sentenceBreakDown.length - 1]; | |
| if( lastWord != comparator) { | |
| _sentenceBreakDown.pop(); | |
| let clearWord = wordGen(lastWord, '?'); | |
| _sentenceBreakDown.push(clearWord); | |
| _sentenceBreakDown.push(comparator); | |
| let z = _sentenceBreakDown.join(" "); |
This file contains hidden or 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 x(n) { | |
| if(n !== 0 && n > 0){ | |
| if(n == 1) { | |
| console.log(n); | |
| return; | |
| } | |
| if(n % 2 == 1) { | |
| console.log(n); | |
| } | |
| x(n-1); |
This file contains hidden or 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 parent = { | |
| left : { | |
| node1 : 10, | |
| node2 : 30 | |
| }, | |
| right : [ | |
| { | |
| leaf1 : 20 , | |
| leaf1a: [ |
This file contains hidden or 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 convertAddTypeBaseLine(data,addType){ | |
| var arr = [],arr2=[]; | |
| for(var j in addType){ | |
| data.forEach(function(data,key) { | |
| var obj={}; | |
| for(let [key, value] of Object.entries(data)){ | |
| obj[key] = value; | |
| } | |
| obj.type = addType[j]; | |
| arr.push(obj); |
This file contains hidden or 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 array1 = [1,1,3333, 333,3333, 2 ,2, 3, 4]; | |
| var temp = []; | |
| for(var i = 0; i < array1.length; i++){ | |
| if(temp.indexOf(array1[i]) === -1) { | |
| temp.push(array1[i]); | |
| }else { | |
| console.log("Duplicate Value Found!"); | |
| break; | |
| } | |
| } |
NewerOlder