Skip to content

Instantly share code, notes, and snippets.

View mikekavouras's full-sized avatar

Mike Kavouras mikekavouras

View GitHub Profile
@mikekavouras
mikekavouras / router.swift
Created June 20, 2023 16:17
Swift Router (w/ Alamofire)
//
// RouterNext.swift
// FootstepsAI
//
// Created by Mike Kavouras on 5/23/23.
//
import Foundation
import Alamofire
import KeychainSwift
#define NOTE_C4 262
#define NOTE_D4 294
#define NOTE_E4 330
#define NOTE_F4 349
#define NOTE_G4 392
#define NOTE_A4 440
#define NOTE_B4 494
#define NOTE_C5 523
int DATA_IN = 11;
curl -Ss "http://munger.service.github.net/users/2244958/repository_recommendations?per_page=20&page=1" | jq .
https://github.com/github/github/blob/202c064a59bb0a895f840d10cadf460c2f3ffbfd/app/assets/modules/github/legacy/pages/orgs/new.js#L29-L49
This is the same behavior on `/organizations/new`. In that case it would more sense if the link changed when the user checked the "This account is owned by a business" checkbox.
If we'd like to keep the existing behavior on `/organizations/new`, we can either change the behavior for this specific instance, or we can say that this PR is good as-is.
Current behavior :point_down:
![tos](https://user-images.githubusercontent.com/627794/32915723-835bf268-cadf-11e7-9420-300308494f88.gif)
const dimension = "request_id:213:LKJSDF):KJDS:09132"
const idx = dimension.indexOf(":")
const key = dimension.substr(0, idx)
const value = dimension.substr(idx + 1, dimension.length)

Intro to React (10-15 minutes)

  • What is React and what does it solve?

Intro to React Native (10-15 minutes)

  • What is React Native and what does it solve?
  • How is it simliar/different from React
  • How is it native?

Overview of React Native development tools (10-15 minutes)

  • Language(s)
import React from 'react';
export default class PrimaryButton extends ReactComonent {
render() {
return <button style={[styles.button, styles.primary})>{this.props.title}</button>
}
}
var styles = {
button: {
# call
AmplitudeTracker.track(user.teespring_id, "should_send_notification", {
type: "seller_variation_upsell"
})
# tracker
class AmplitudeTracker
BASE_URL = "https://api.amplitude.com".freeze
TRACK_URL = "/httpapi".freeze
IDENTIFY_URL = "/identify".freeze