Skip to content

Instantly share code, notes, and snippets.

Kyle kalm42

Block or report user

Report or block kalm42

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
kalm42 / Resulting JSON
Last active Nov 26, 2018
WordPress File Upload
View Resulting JSON
"media_details": {
"width": 4000,
"height": 2668,
"file": "2018/11/IMG_2344.jpg",
"sizes": {
"thumbnail": {
"file": "IMG_2344-150x150.jpg",
"width": 150,
"height": 150,
"mime_type": "image/jpeg",
kalm42 / ColorPicker.js
Created Oct 29, 2018
React component to pick colors.
View ColorPicker.js
import React, { Component } from "react";
import PropTypes from "prop-types";
import styled from "styled-components";
const ColorPickerWrapper = styled.div`
width: 100%;
background-color: white;
padding: 40px 0;
kalm42 / Person.swift
Created Apr 22, 2017
Swift error with nested init
View Person.swift
struct Address {
let locationName: String?
let line1: String
let line2: String?
let line3: String?
let city: String
let state: String
let zip: String
init(dictionary: [String:String]) {
View FatSample.swift
class HealthData {
//MARK: - Class Properties
private let healthStore = HKHealthStore()
private let queue = DispatchQueue(label: "com.kalm42.your-fat.hd", attributes: .concurrent)
private let group = DispatchGroup()
var perferredUnitOfMeasurement: UnitOfMeasurement = .lb
var isFinishedLoading: Bool = false
//HealthKit variables
private var hkUnitOfMeasurement = HKUnit.pound()
You can’t perform that action at this time.