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: |
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(); | |
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, |
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'] |
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 |
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" | |
}, |
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 ] |
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
n = int(input().strip()) | |
arr = [int(arr_temp) for arr_temp in input().strip().split(' ')] | |
print(sum(arr)) |
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: |
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
#include <iostream> | |
#include <vector> | |
using std::vector; | |
int get_max_index (vector<int> weights, vector<int> values) { | |
int max_i = 0; | |
double max = 0; | |
for (int i = 0; i < weights.size(); i++) { |
NewerOlder