Skip to content

Instantly share code, notes, and snippets.

💭
美しい未来に

Sky.G.Uieen GUIEEN

💭
美しい未来に
Block or report user

Report or block GUIEEN

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
View multipartFormData.swift
// 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")
@GUIEEN
GUIEEN / searchBarViewController.swift
Created May 10, 2019
ViewController implementation of searchbar
View searchBarViewController.swift
//
// 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
@GUIEEN
GUIEEN / ObjectDumper.cs
Created Apr 24, 2019 — forked from syaifulnizamyahya/ObjectDumper.cs
ObjectDumper for UWP. Use it to quickly get whats inside an object.
View ObjectDumper.cs
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
@GUIEEN
GUIEEN / compileObjectiveC.md
Last active Apr 8, 2019
How to compile objective c in mac
View compileObjectiveC.md
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
@GUIEEN
GUIEEN / curl.md
Created Apr 3, 2019 — forked from subfuzion/curl.md
curl POST examples
View curl.md

Common Options

-#, --progress-bar Make curl display a simple progress bar instead of the more informational standard meter.

-b, --cookie <name=data> Supply cookie with request. If no =, then specifies the cookie file to use (see -c).

-c, --cookie-jar <file name> File to save response cookies to.

@GUIEEN
GUIEEN / cli-memo.md
Last active Mar 29, 2019
자주쓰는 리눅스 커멘드 정리
View cli-memo.md

Prettify JSON file

  • python -mjson.tool
  • Eg
    • cat /usr/local/opt/someProgram/menifast.json | python -mjson.tool

Make watch in OSX

# ~/.zshrc
# Refresh `ls` on each 1 sec 
# eg) watch ls 1
@GUIEEN
GUIEEN / restart_bluetooth.sh
Created Mar 24, 2019 — forked from nicolasembleton/restart_bluetooth.sh
Restart Bluetooth Daemon on Mac OS X without restarting
View restart_bluetooth.sh
#!/bin/bash
sudo kextunload -b com.apple.iokit.BroadcomBluetoothHostControllerUSBTransport
sudo kextload -b com.apple.iokit.BroadcomBluetoothHostControllerUSBTransport
@GUIEEN
GUIEEN / gcc-brew.md
Created Mar 23, 2019 — forked from ibraheem4/postgres-brew.md
Installing Postgres via Brew (OSX)
View gcc-brew.md
@GUIEEN
GUIEEN / Brew정리.md
Last active Mar 23, 2019
HomeBrew에 대해 잠시 정리해봄. 이제야..🤦‍♂️
View Brew정리.md

HomeBrew

公式:Term 公式:Description 補足 ビール作りでいうと
Formula The package definition パッケージの説明書や手順書 調理法
Keg The installation prefix of a Formula Formula のインストール先パス タル、熟成用
opt prefix A symlink to the active version of a Keg version 違いの keg に対する active への symlink 使用中のタルの目印
Cellar All Kegs are installed here
You can’t perform that action at this time.