Skip to content

Instantly share code, notes, and snippets.

View yudataguy's full-sized avatar

Sam Yu yudataguy

  • Los Angeles, California
View GitHub Profile
@yudataguy
yudataguy / Yahoo知恵袋にスクレイピング.ipynb
Created May 7, 2023 22:30 — forked from jshirius/Yahoo知恵袋にスクレイピング.ipynb
Yahoo知恵袋のスクレイピングのPythonサンプルプログラム
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@yudataguy
yudataguy / convert_pdf.py
Created May 2, 2023 21:32 — forked from rguliev/convert_pdf.py
Python 3: pdfminer code to convert pdf to text, html or xml
# Use `pip3 install pdfminer.six` for python3
from typing import Container
from io import BytesIO
from pdfminer.pdfinterp import PDFResourceManager, PDFPageInterpreter
from pdfminer.converter import TextConverter, XMLConverter, HTMLConverter
from pdfminer.layout import LAParams
from pdfminer.pdfpage import PDFPage
@yudataguy
yudataguy / sevenish_algorithm_problem_solution.py
Created December 3, 2019 08:57 — forked from basilwong/sevenish_algorithm_problem_solution.py
Let's define a sevenish number is a number that is one of a power of 7, or a number that is the sum of unique power of 7s
'''
Let's define a sevenish number is a number that is one of a power of 7, or a number that is the sum of unique power of 7s
From the beginning the first few sevenish are:
1, 7, 8, 49, 50 and so on
You are to create an algorithm that finds the i'th sevenish number
'''
@yudataguy
yudataguy / README-Template.md
Created April 12, 2019 03:47 — forked from PurpleBooth/README-Template.md
A template to make good README.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

@yudataguy
yudataguy / permutationsArray.js
Last active March 12, 2019 18:17 — forked from md2perpe/permutations.js
Function for generating permutations of a list.
function permutations(list)
{
// Empty list has one permutation
if (list.length == 0)
return [[]];
var result = [];
for (var i=0; i<list.length; i++)