Skip to content

Instantly share code, notes, and snippets.


Maxim Veksler maximveksler

Block or report user

Report or block maximveksler

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
maximveksler /
Last active Aug 10, 2019
All the ways to create a Spark Dataframe (pyspark)
df = spark.createDataFrame([
("a", "Alice", 34),
("b", "Bob", 36),
("c", "Charlie", 30),
], ["id", "name", "age"])
  • iqvoc - SKOS(-XL) Vocabulary Management System for the Semantic Web.
View big query merge.sql
# Google BigQuery - Merge data
bigquery_merge() {
echo "Loading ${GC_BQ_WORK_TABLE} table into ${GC_BQ_MERGE}"
bq --location=US load --source_format=NEWLINE_DELIMITED_JSON --encoding=UTF-8 \
echo "Merging into ${GC_BQ_DATASET}.${GC_BQ_TABLE}"
cat <<bigtable-merge | bq --location=US query --use_legacy_sql=false --max_rows=0
View Life.txt
A great way to assess how your life is going and where you might be able to improve it to have a more balanced and healthy life is to try to be successful in these 6 areas of life:
1) Intimate Relationships
2) Friendships
3) Family
4) Career and Education (livelihood)
5) Time Away from Work (creativity)
6) Drugs/Alcohol (health)
Now you can assess your success in these 6 categories, which is the first step to setting a plan to improve each of them. I've also specified the last 3 categories to fit into another way to view life, which is to ensure you have one aspect that that provides your livelihood (a job), one aspect that allows for a creative outlet (music, painting, writing, etc) because all humans essentially yearn to create something, and one aspect that allows for exercise/health and reduce your drugs and alcohol intake.
1) If you do not have any intimate relationships, you must consider how to improve on this aspect. This might include things like dating sites, going to bars, Tinder, etc. However, my
maximveksler / TapeACall_downloader.rb
Last active Jun 2, 2017
TapeACall recordings download script
View TapeACall_downloader.rb
require 'csv'
require 'date'
require 'net/http'
all ="TapeACall Recordings.csv")[1 .. -1]
all.each do |x|
csv_date = x[0]
csv_label = x[1]
csv_duration = x[2]
csv_link = x[3]
View Map.swift
import Foundation
func lengthOf(strings: [String]) -> [Int] {
return { $0.characters.count }
let fruits = ["Apple", "Cheery", "Orange", "Pineapple"]
let upperFruits = { $0.uppercased() }
let scores = [100, 80, 85]
maximveksler / LoggerAPI.swift
Created Feb 5, 2017
Benchmark extension for IBM Swift HeliumLogger
View LoggerAPI.swift
// LoggerAPI.swift
// Collection
// Created by Maxim Veksler on 05/02/2017.
import Foundation
import LoggerAPI
maximveksler / main.swift
Last active Jan 24, 2017
Using #ifdef Xcode to detect debug builds in Swift
View main.swift
func _hackon_FacebookGET(_ stdin: FileHandle) -> Data {
#if Xcode
return "{\"httpMethod\":\"GET\", \"queryStringParameters\":{\"hub.mode\":\"subscribe\",\"hub.challenge\":\"56922036\",\"hub.verify_token\":\"Swift time is the best time\"},\"body\":null,\"isBase64Encoded\":false}".data(using: .utf8)!
return stdin.readDataToEndOfFile()
let input = try Jay().jsonFromData(_hackon_FacebookGET(FileHandle.standardInput))
maximveksler / Package.swift
Created Jan 22, 2017
CI deploy script for: AWS Lambda Swift echo
View Package.swift
import PackageDescription
let package = Package(
name: "Collection",
dependencies: [
.Package(url: "", majorVersion: 1)
View fonts-integartion__create-react-app.txt
➜ Client git:(feature/trivia-game-ui-2) ✗ ls -l public/static/fonts
total 1168
-rwxr-xr-x@ 1 maximveksler staff 62676 Mar 17 2014 MYRIADPRO-BOLD.woff
-rwxr-xr-x@ 1 maximveksler staff 61500 Mar 17 2014 MYRIADPRO-BOLDCOND.woff
-rwxr-xr-x@ 1 maximveksler staff 66024 Mar 17 2014 MYRIADPRO-BOLDCONDIT.woff
-rwxr-xr-x@ 1 maximveksler staff 66108 Mar 17 2014 MYRIADPRO-BOLDIT.woff
-rwxr-xr-x@ 1 maximveksler staff 60044 Mar 17 2014 MYRIADPRO-COND.woff
-rwxr-xr-x@ 1 maximveksler staff 64656 Mar 17 2014 MYRIADPRO-CONDIT.woff
-rwxr-xr-x@ 1 maximveksler staff 61848 Mar 17 2014 MYRIADPRO-REGULAR.woff
-rwxr-xr-x@ 1 maximveksler staff 62448 Mar 17 2014 MYRIADPRO-SEMIBOLD.woff
You can’t perform that action at this time.