$ brew update # Fetch latest version of homebrew and formula.
$ brew tap caskroom/cask # Tap the Caskroom/Cask repository from Github using HTTPS.
$ brew search slack # Searches all known Casks for a partial or exact match.
$ brew cask info slack # Displays information about the given Cask
$ brew cask install slack # Install the given cask.
$ brew cleanup # Remove any older versions from the cellar.
$ brew install gcc
インストールはこれだけで終わりです。
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
sudo kextunload -b com.apple.iokit.BroadcomBluetoothHostControllerUSBTransport | |
sudo kextload -b com.apple.iokit.BroadcomBluetoothHostControllerUSBTransport |
- Ref
- https://itnext.io/step-by-step-building-and-publishing-an-npm-typescript-package-44fe7164964c
- https://medium.com/cameron-nokes/the-30-second-guide-to-publishing-a-typescript-package-to-npm-89d93ff7bccd
- https://qiita.com/kohashi/items/736bfb4a6db5bed2ad73
- https://codeburst.io/https-chidume-nnamdi-com-npm-module-in-typescript-12b3b22f0724
- Automatically Build NPM Module On Install From Github
- https://stackoverflow.com/questions/48287776/automatically-build-npm-module-on-install-from-github
clang -framework Foundation <objc-file-name>.m
./a.out
It would be better to use with this function :)
function run_objc {
if [[ -n "$2" ]];then
secArg=$2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections; | |
using System.Collections.Generic; | |
using System.Reflection; | |
using System.Text; | |
using WinRTXamlToolkit.Common; | |
namespace ObjectDumper | |
{ | |
//http://stackoverflow.com/questions/852181/c-printing-all-properties-of-an-object |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// ViewController.swift | |
// SwiftSearch | |
// | |
// Created by Shrikar Archak on 2/16/15. | |
// Copyright (c) 2015 Shrikar Archak. All rights reserved. | |
// | |
// Ref: https://shrikar.com/swift-ios-tutorial-uisearchbar-and-uisearchbardelegate/ | |
import UIKit |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// https://stackoverflow.com/a/31957717/5260068 | |
Alamofire.upload( | |
.POST, | |
URLString: fullUrl, // http://httpbin.org/post | |
multipartFormData: { multipartFormData in | |
multipartFormData.appendBodyPart(fileURL: imagePathUrl!, name: "photo") | |
multipartFormData.appendBodyPart(fileURL: videoPathUrl!, name: "video") | |
multipartFormData.appendBodyPart(data: Constants.AuthKey.dataUsingEncoding(NSUTF8StringEncoding, allowLossyConversion: false)!, name :"authKey") | |
multipartFormData.appendBodyPart(data: "\(16)".dataUsingEncoding(NSUTF8StringEncoding, allowLossyConversion: false)!, name :"idUserChallenge") |