Skip to content

Instantly share code, notes, and snippets.

View nhtranngoc's full-sized avatar

Nam Tran Ngoc nhtranngoc

View GitHub Profile
@filsv
filsv / WatchSessionManager.swift
Last active April 8, 2023 21:33
WatchConnectivity Singleton (Swift 5+, iOS+WatchOS Targets) + How to (comment below)
import WatchConnectivity
class WatchSessionManager: NSObject, WCSessionDelegate {
static let sharedManager = WatchSessionManager()
private override init() {
super.init()
}
private let session: WCSession? = WCSession.isSupported() ? WCSession.default : nil
@nhtranngoc
nhtranngoc / arm_total.txt
Last active September 17, 2015 22:03 — forked from anonymous/gist:5a045c0b79fe1cd4a425
RBE3001 3D Arm Mass & Inertia Properties
Mass properties of selected components
Coordinate system: -- default --
Mass = 1.23 pounds
Volume = 18.57 cubic inches
Surface area = 327.84 square inches
Center of mass: ( inches )
@NatashaTheRobot
NatashaTheRobot / WatchConnectivitySingletonDemo.swift
Last active May 21, 2024 18:21
WatchConnectivity Singleton Demo
//
// WatchSessionManager.swift
// WatchConnectivityDemo
//
// Created by Natasha Murashev on 9/3/15.
// Copyright © 2015 NatashaTheRobot. All rights reserved.
//
import WatchConnectivity
@mapedd
mapedd / .gitignore
Created March 15, 2012 16:24
.gitignore file for files generated by Xilinx ISE IDE
#Gitignore for files generated by Xilinx ISE
*.log
*.svf
*.scr
*.cmd
*.bak
*.lso
*.elf
*.ace