Skip to content

Instantly share code, notes, and snippets.

View praveeno's full-sized avatar
🏠
Working from home

Praveen Soni praveeno

🏠
Working from home
View GitHub Profile
@praveeno
praveeno / index.html
Created July 30, 2024 08:29
custom component in plain html
<!-- Modular component example -->
<template id="my-component">
<style>
/* Component-specific styles */
.container {
padding: 10px;
background-color: #f0f0f0;
}
</style>
<div class="container">
@praveeno
praveeno / devcontainer.json
Created May 14, 2024 15:05
personal dev container
{
"extensions": [
"dbaeumer.vscode-eslint",
"esbenp.prettier-vscode",
"ms-vsliveshare.vsliveshare",
[{"#":"1","Name":"Bulbasaur","Type 1":"Grass","Type 2":"Poison","Total":"318","HP":"45","Attack":"49","Defense":"49","Sp. Atk":"65","Sp. Def":"65","Speed":"45","Generation":"1","Legendary":"False","id":1},{"#":"2","Name":"Ivysaur","Type 1":"Grass","Type 2":"Poison","Total":"405","HP":"60","Attack":"62","Defense":"63","Sp. Atk":"80","Sp. Def":"80","Speed":"60","Generation":"1","Legendary":"False","id":2},{"#":"3","Name":"Venusaur","Type 1":"Grass","Type 2":"Poison","Total":"525","HP":"80","Attack":"82","Defense":"83","Sp. Atk":"100","Sp. Def":"100","Speed":"80","Generation":"1","Legendary":"False","id":3},{"#":"3","Name":"VenusaurMega Venusaur","Type 1":"Grass","Type 2":"Poison","Total":"625","HP":"80","Attack":"100","Defense":"123","Sp. Atk":"122","Sp. Def":"120","Speed":"80","Generation":"1","Legendary":"False","id":4},{"#":"4","Name":"Charmander","Type 1":"Fire","Type 2":"","Total":"309","HP":"39","Attack":"52","Defense":"43","Sp. Atk":"60","Sp. Def":"50","Speed":"65","Generation":"1","Legendary":"False","i
// get location to api
//
class FoodCartController {
final List positions = [];
constructor() {
final service = singltonService();
service.initState()
}
@praveeno
praveeno / download_chat.js
Created March 28, 2021 10:36
Slack Group / DM chat download script Js
const downloadSlackHistory = (cursor, channel, token, {ignore_replies, include_pin_count, limit, inclusive, no_user_profile, workspace_name}) => fetchJson(`https://${workspace_name}.slack.com/api/conversations.history?cursor=${cursor ? cursor: ''}`, {
"headers": {
"accept": "*/*",
"accept-language": "en-GB,en-US;q=0.9,en;q=0.8",
"cache-control": "no-cache",
"content-type": "multipart/form-data; boundary=----WebKitFormBoundaryB9uCttsJARlaTNGJ",
"pragma": "no-cache",
"sec-ch-ua": "\"Google Chrome\";v=\"87\", \" Not;A Brand\";v=\"99\", \"Chromium\";v=\"87\"",
"sec-ch-ua-mobile": "?0",
"sec-fetch-dest": "empty",
{"parent":{"address":{"apt_unit":"","city":"","country":"United States","formatted_address":"Texas, USA","geo":{"lat":31.9685988,"lon":-99.90181310000003},"state":"TX","street_addr1":"","street_addr2":"","zip_code":""},"hear_from":["SiliconAndhra web site"],"p1":{"company":"appTest","email":"[email protected]","mobile_number":"appTest","name":{"first_name":"Bhaskar","last_name":"Rayavaram","middle_name":""},"name_title":"Mr","occupation":"appTest"},"p2":{"company":null,"email":null,"mobile_number":null,"name":{"first_name":"","last_name":"","middle_name":""},"name_title":"","occupation":null},"telgu_speak":null,"telgu_write":null,"urlsafe_key":"ahBtYW5hYmFkaS1zdGFnaW5nchMLEgZQYXJlbnQYgICA3qfViQoM","volunteer_grp":["None"]},"spl_discount":0.0,"students":[{"apps_id":"[email protected]","dob":"Apr 19, 1995","enrollments":[{"academic_grade":"3","academic_school":"Texas, USA","academic_year":"2018-2019","average_score":null,"center":"ahBtYW5hYmFkaS1zdGFnaW5nchQLEgdDZW50ZXJzGICAgJS
adb forward tcp:9222 localabstract:chrome_devtools_remote
curl http://localhost:9222/json/list | jq -r " .[] | \[\" + .title + \"](\" + .url + \")\"" > mobile.tabs.md
curl -X POST mobile.tabs.md -u username:mypassword https://api.github.com/gists
{
"data": [
{
"is_public": true,
"key_name": "registration.shirt_sizes",
"status": true,
"value": "[\"Y-XS\",\"Y-S\",\"Y-M\",\"Y-L\",\"A-S\",\"A-M\",\"A-L\",\"A-XL\"]"
},
{
"is_public": true,