Skip to content

Instantly share code, notes, and snippets.

View jmeline's full-sized avatar

Jacob Meline jmeline

  • Software Developer @ DriveTime
  • Greater Salt Lake City
View GitHub Profile
@jmeline
jmeline / download-file-axios-nodejs.js
Created June 2, 2023 05:28 — forked from senthilmpro/download-file-axios-nodejs.js
Download File using axios : Node.js program
'use strict'
const Fs = require('fs')
const Path = require('path')
const Axios = require('axios')
async function downloadImage () {
const url = 'https://unsplash.com/photos/AaEQmoufHLk/download?force=true'
const path = Path.resolve(__dirname, 'images', 'code1.jpg')
@jmeline
jmeline / ffmpeg.md
Created September 6, 2021 01:05 — forked from protrolium/ffmpeg.md
ffmpeg guide

ffmpeg

Converting Audio into Different Formats / Sample Rates

Minimal example: transcode from MP3 to WMA:
ffmpeg -i input.mp3 output.wma

You can get the list of supported formats with:
ffmpeg -formats

You can get the list of installed codecs with:

@jmeline
jmeline / readme.md
Created November 3, 2020 20:30 — forked from noahcoad/readme.md
Code Minecraft with Python on Mac OSX

Code Minecraft with Python on Mac OSX

Here's a step-by-step to get started scripting Minecraft with Python on Mac OSX

@jmeline
jmeline / SingleArrow.ipynb
Created August 23, 2019 15:45 — forked from vakila/SingleArrow.ipynb
Anjana Vakil, "The Universe in a Single Arrow", JSHeroes 2019
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
#List unique values in a DataFrame column
pd.unique(df.column_name.ravel())
#Convert Series datatype to numeric, getting rid of any non-numeric values
df['col'] = df['col'].astype(str).convert_objects(convert_numeric=True)
#Grab DataFrame rows where column has certain values
valuelist = ['value1', 'value2', 'value3']
df = df[df.column.isin(value_list)]