Skip to content

Instantly share code, notes, and snippets.

View ParzivalWins's full-sized avatar
💭
Know Thyself

Parzival ParzivalWins

💭
Know Thyself
View GitHub Profile
@ParzivalWins
ParzivalWins / pandoc-docx-md.bat
Created June 5, 2022 21:57 — forked from arthurattwell/pandoc-docx-md.bat
Script to convert docx to markdown with Pandoc
:: pandoc-docx-md.bat
::
:: Don't show these commands to the user
@ECHO off
:: Set the title of the window
TITLE Convert docx to markdown with Pandoc
:: Select file marker
:selectfile
:: Clear any preexisting filename variables
SET filename=
@ParzivalWins
ParzivalWins / Snowflake-Query
Created November 6, 2020 23:59
The following query retrieves the recent high and low temperature readings for New York City, converted from celsius to fahrenheit temperatures, along with the latitude and longitude for the readings:
select (v:main.temp_max - 273.15) * 1.8000 + 32.00 as temp_max_far,
(v:main.temp_min - 273.15) * 1.8000 + 32.00 as temp_min_far,
cast(v:time as timestamp) time,
v:city.coord.lat lat,
v:city.coord.lon lon,
v
from snowflake_sample_data.weather.weather_14_total
where v:city.name = 'New York'
and v:city.country = 'US'
order by time desc
@ParzivalWins
ParzivalWins / Strava-API-GET
Last active February 27, 2023 21:23
Strava-API
GET https://www.strava.com/api/v3/athlete?access_token=9e568ccd02edcad203baed6e52a7aba272a1dfb9
PUT https://www.strava.com/api/v3/athlete?access_token=9e568ccd02edcad203baed6e52a7aba272a1dfb9
GET https://www.strava.com/api/v3/athlete?access_token=9e568ccd02edcad203baed6e52a7aba272a1dfb9
@ParzivalWins
ParzivalWins / wow.md
Created October 23, 2020 04:47
Adding a Gist

##test #cool

##test #hello ####world

@ParzivalWins
ParzivalWins / index.html
Last active July 13, 2020 19:18
FirstPlayground
Hello
@ParzivalWins
ParzivalWins / same-Function.md
Created May 25, 2020 00:40
sample function

function definition and declaration

def calculate_sum(a,b): sum = a+b return sum

The below statement is called function call

print(calculate_sum(2,3)) # 5 //TODO @parzival OK

## Prerequisites
- Hugo > 0.55.0
## Content Management
@ParzivalWins
ParzivalWins / cloudSettings
Last active April 10, 2020 18:30
cloudSettings2-Public
{"lastUpload":"2020-04-10T18:30:10.283Z","extensionVersion":"v3.4.3"}
@ParzivalWins
ParzivalWins / kaggle_download.py
Created April 9, 2020 19:38 — forked from jayspeidell/kaggle_download.py
Sample script to download Kaggle files
# Info on how to get your api key (kaggle.json) here: https://github.com/Kaggle/kaggle-api#api-credentials
!pip install kaggle
api_token = {"username":"USERNAME","key":"API_KEY"}
import json
import zipfile
import os
with open('/content/.kaggle/kaggle.json', 'w') as file:
json.dump(api_token, file)
!chmod 600 /content/.kaggle/kaggle.json
!kaggle config path -p /content