View tana_paste.js
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
{ | |
"translatorID": "dda092d2-a257-46af-b9a3-2f04a55cb04f", | |
"label": "Tana Metadata Export", | |
"creator": "Stian Håklev based on Joel Chan's work", | |
"target": "md", | |
"minVersion": "2.0", | |
"maxVersion": "", | |
"priority": 200, | |
"inRepository": true, | |
"translatorType": 2, |
View Notes Publish GH Action.yml
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
name: Publish | |
on: | |
push: | |
branches: [master] | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
concurrency: |
View index.js
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 { nanoid } from 'nanoid'; | |
import {globby} from 'globby'; | |
import matter from 'gray-matter'; | |
import { writeFile } from 'fs'; | |
const NOTES_DIR = "../notes_temp" | |
const paths = await globby(NOTES_DIR, { | |
expandDirectories: { | |
extensions: ['md'] |
View process_logseq_timestamped.js
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
const notice = (msg) => new Notice(msg, 5000); | |
const log = (msg) => console.log(msg); | |
module.exports = async function processLogseq(params) { | |
const {app, quickAddApi: {yesNoPrompt, inputPrompt, utility}} = params; | |
const shouldRemove = await yesNoPrompt("Should I remove timestamps?", `If you say no, I'll process them to be default youtube timestamp links. If you say yes, I'll simply remove them.`); | |
let text = await utility.getClipboard(); | |
text = text.toString(); | |
View simulator_client.bat
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
@REM start ../CarlaUE4.exe | |
@echo OFF | |
rem How to run a Python script in a given conda environment from a batch file. | |
rem It doesn't require: | |
rem - conda to be in the PATH | |
rem - cmd.exe to be initialized with conda init | |
rem Define here the path to your conda installation |
View resume.json
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
{ | |
"basics": { | |
"name": "Aadam", | |
"email": "aadimator@gmail.com", | |
"phone": "+923225396069", | |
"location": { | |
"address": "Haripur, Pakistan" | |
}, | |
"website": "aadimator.com" | |
}, |
View publish.yml
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
# This is a basic workflow to help you get started with Actions | |
name: CI | |
# Controls when the action will run. Triggers the workflow on push or pull request | |
# events but only for the master branch | |
on: | |
push: | |
branches: [ master ] |
View cs221_quiz_1_solution.cpp
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
// Statement: Suppose we have one way linked list. Write a function to add a node in the linked list such that the resulting list is a sorted one. | |
#include<iostream> | |
using namespace std; | |
class List { | |
private: |
View 2_add_two_numbers_leetCode.py
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
# Definition for singly-linked list. | |
# class ListNode(object): | |
# def __init__(self, x): | |
# self.val = x | |
# self.next = None | |
class Solution(object): | |
def addTwoNumbers(self, l1, l2): | |
""" | |
:type l1: ListNode |
View 1_two_sums_leetCode.py
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
class Solution: | |
def twoSum(self, nums, target): | |
""" | |
:type nums: List[int] | |
:type target: int | |
:rtype: List[int] | |
""" | |
dict = {} | |
for i in range(len(nums)): | |
complement = target - nums[i] |
NewerOlder