Skip to content

Instantly share code, notes, and snippets.

View patorn's full-sized avatar
🎯
Focusing

Patorn Utenpattanun patorn

🎯
Focusing
  • Bangkok
View GitHub Profile
@ih2502mk
ih2502mk / list.md
Last active May 30, 2025 11:49
Quantopian Lectures Saved
@bluet
bluet / Database Naming Convention and Data Warehouse Design Principles.md
Last active March 2, 2025 00:29
Database Naming Convention and Data Warehouse Design Principles
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@hivefans
hivefans / Spark Dataframe Cheat Sheet.py
Last active October 22, 2020 10:27 — forked from crawles/Spark Dataframe Cheat Sheet.py
Cheat sheet for Spark Dataframes (using Python)|-|{"files":{"Spark Dataframe Cheat Sheet.py":{"env":"plain"}},"tag":"bigdata"}
# A simple cheat sheet of Spark Dataframe syntax
# Current for Spark 1.6.1
# import statements
from pyspark.sql import SQLContext
from pyspark.sql.types import *
from pyspark.sql.functions import *
#creating dataframes
df = sqlContext.createDataFrame([(1, 4), (2, 5), (3, 6)], ["A", "B"]) # from manual data
@jimmysitu
jimmysitu / morningstar.com API.md
Last active April 7, 2025 14:54
morningstar.com API

morningstar.com API

  • Get key ratio, return csv format file
http://financials.morningstar.com/ajax/exportKR2CSV.html?t=<market>:<stock>

Market

  • XHKG: Hong Kong Stock Exchange
  • XASE: American Stock Exchange
  • XNAS: Nasdaq Stock Exchange >* XNYS: New York Stock Exchange
@hynekcer
hynekcer / run_sf_report.py
Last active December 21, 2023 12:53
Parse Salesforce report data in Python
"""Parse Salesforce report data in Python
details in my answer https://stackoverflow.com/a/45645135/448474
"""
from collections import OrderedDict
from simple_salesforce import Salesforce
import pandas as pd
import json
@zentetsukenz
zentetsukenz / ruby_on_rails_deployment.md
Last active December 2, 2024 01:26
Deploy Ruby on Rails application with Docker Compose and Capistrano with ease

Docker

Files and Folders.

|
|\_ app
|...
|\_ docker
| |
@kawanet
kawanet / material-colors.json
Last active March 23, 2025 04:07
Material Design Style Color Palette as JSON
{
"red": {
"50": "#ffebee",
"100": "#ffcdd2",
"200": "#ef9a9a",
"300": "#e57373",
"400": "#ef5350",
"500": "#f44336",
"600": "#e53935",
"700": "#d32f2f",
@dannguyen
dannguyen / guardian-articles-day-api.md
Last active May 9, 2025 17:24
How to use The Guardian's API to download article data for content analysis (in Python 3.x)

How to use The Guardian's API to download article data for content analysis (in Python 3.x)

The Guardian offers an API as deep and robust as the New York Times Article API when it comes to content analysis.

The Guardian's API offers more than "1.7 million pieces of content", with published items as far back as 1999. You can register as a developer here, which gets you 5,000 API hits a day and an API key that looks something like this:

zzzyyyyy-9a9z-999z-z999-9e8a83922516

The Guardian has a handy interactive explorer to interactively tweak the query parameters.

@ololobus
ololobus / Spark+ipython_on_MacOS.md
Last active September 26, 2024 08:50
Apache Spark installation + ipython/jupyter notebook integration guide for macOS

Apache Spark installation + ipython/jupyter notebook integration guide for macOS

Tested with Apache Spark 2.1.0, Python 2.7.13 and Java 1.8.0_112

For older versions of Spark and ipython, please, see also previous version of text.

Install Java Development Kit