Skip to content

Instantly share code, notes, and snippets.

View kiranparajuli589's full-sized avatar
🎸
LalaLaa

Kiran Parajuli kiranparajuli589

🎸
LalaLaa
View GitHub Profile
@kiranparajuli589
kiranparajuli589 / gist:2dfc81cb3552dd9bbfa5243ddfc3f73e
Created April 14, 2020 08:27 — forked from rxaviers/gist:7360908
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: 😄 :smile: 😆 :laughing:
😊 :blush: 😃 :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
😆 :satisfied: 😁 :grin: 😉 :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: 😀 :grinning:
😗 :kissing: 😙 :kissing_smiling_eyes: 😛 :stuck_out_tongue:
$ curl -X GET http://localhost/core/ocs/v1.php/cloud/capabilities -v -u new:new | xmllint --format -
Note: Unnecessary use of -X or --request, GET is already inferred.
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0* Trying 127.0.0.1:80...
* TCP_NODELAY set
* Connected to localhost (127.0.0.1) port 80 (#0)
* Server auth using Basic with user 'new'
> GET /core/ocs/v1.php/cloud/capabilities HTTP/1.1
> Host: localhost
$ curl -X GET http://localhost:9140/ocs/v1.php/cloud/capabilities -v -u einstein:relativity | xmllint --format -
Note: Unnecessary use of -X or --request, GET is already inferred.
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0* Trying 127.0.0.1:9140...
* TCP_NODELAY set
* Connected to localhost (127.0.0.1) port 9140 (#0)
* Server auth using Basic with user 'einstein'
> GET /ocs/v1.php/cloud/capabilities HTTP/1.1
> Host: localhost:9140
@kiranparajuli589
kiranparajuli589 / REGEX_TRAINING_20210204.md
Created February 4, 2021 07:36
REGEX TRAINING 20210204

Regular Expression (Regex)

Regex is one of the most powerful, flexible, and efficient text processing approaches. Regex has its own terminologies, conditions and syntax; it is, in a sense, a mini programming language.

Regex can be used to add, remove, isolate and manipulate all kinds of text and data. It could be used a a simple text editor command, e.g. search and replace, or as it’s own powerful text-processing language. Because of that, Regex has so many applications in technology today, such as: Extract Useful Information With Web Crawlers, Data Scrapping and Web Scraping, Data Wrangling, and machine learning __ namely, natural language process and speech recognition.

No errors have been found.
@kiranparajuli589
kiranparajuli589 / nameInABox.js
Last active May 12, 2021 16:29
Name in a box
class NameBox {
#nameToPrint
#spaceBeforeName
#numberOfLines
#specialCharacter
/**
* Name box initializer
*
* @param {String} name Name to wrap
  ~/w/dove   master !427 ❯ yarn build  17:59:57
yarn run v1.22.5
$ vue-cli-service build
⠇ Building for production...
WARNING Compiled with 13 warnings 6:00:34 PM
warning
#!/bin/bash
BASE_FOLDER=$1
FOLDER_TO_COMPARE_WITH=$2
EXTRA_DIR=$3
mkdir -p $EXTRA_DIR
for f in $(find $FOLDER_TO_COMPARE_WITH -type f -printf "%f\n")
do
@kiranparajuli589
kiranparajuli589 / fetcher.js
Created September 28, 2021 13:10
Link data fetch server
// cheerio is used for faster implementation
// https://www.npmjs.com/package/cheerio
// editorjs link previewer
app.get("/fetchUrl", async (req, res) => {
let url = req.query.url;
let resHTML = await fetch(new URL(url)).catch(e => console.log)
const html = await resHTML.text()
const $ = cheerio.load(html)
@kiranparajuli589
kiranparajuli589 / Editor.vue
Created November 14, 2021 06:21
Tip tap editor for vue js
<template>
<v-card
class="full-width"
flat tile
>
<div v-if="label"
class="tiptap-label"
>
{{ label }}
</div>