Skip to content

Instantly share code, notes, and snippets.

@anhhtz
anhhtz / gist:59f8dfda161664effed4fb129b503571
Created May 16, 2017 12:59 — forked from jnhuynh/gist:86693d8b485f4d335300
React Native Directory Structure
.
├── index.ios.js
├── js
│   ├── actions
│   │   ├── ChatServerActionCreators.js
│   │   └── ChatThreadActionCreators.js
│   ├── components
│   │   ├── ChatScreen
│   │   │   ├── index.js
@anhhtz
anhhtz / ServiceAPI+Endpoint.swift
Created December 16, 2017 22:57
Define api request by enum in swift
//
// ServicesAPI+WebServices.swift
// gist
//
// Created by Allan Vialatte on 28/07/16.
// Copyright © 2016 Allan Vialatte. All rights reserved.
//
//MARK: - WebServices
extension ServicesAPI {
@anhhtz
anhhtz / restart_bluetooth.sh
Created May 14, 2019 14:10 — forked from nicolasembleton/restart_bluetooth.sh
Restart Bluetooth Daemon on Mac OS X without restarting
#!/bin/bash
sudo kextunload -b com.apple.iokit.BroadcomBluetoothHostControllerUSBTransport
sudo kextload -b com.apple.iokit.BroadcomBluetoothHostControllerUSBTransport