This file contains 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
name: Update Package.resolved | |
on: | |
pull_request: | |
types: | |
- opened | |
paths: | |
- 'Package.swift' | |
- '**/Package.swift' | |
workflow_dispatch: |
This file contains 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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>FILEHEADER</key> | |
<string> | |
// ___FILENAME___ | |
// ___TARGETNAME___ | |
// | |
// Created by ___USERNAME___ on ___DATE___. |
This file contains 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
import UIKit | |
class ViewController: UIViewController, UITextFieldDelegate { | |
private var myTextField: UITextField! | |
override func viewDidLoad() { | |
super.viewDidLoad() | |
let width: CGFloat = 200 |
This file contains 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
{ | |
"packages": { | |
"plugins": [ | |
{ | |
"name": "XcodeBuddyPlugin", | |
"url": "https://github.com/uugo/XcodeBuddyPlugin", | |
"description": "XcBuddy App running on ios devices is not only an independent source view and analysis tool, but also a client attached to the Xcode. You can connect to xcBuddy app and operate it with XcodeBuddy Plugin.", | |
"screenshot": "https://raw.githubusercontent.com/uugo/XcodeBuddyPlugin/master/image/usage.png" | |
}, | |
{ |
This file contains 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
function peco-select-docker-image-run(){ | |
local docker_image="$(docker images | grep -v "REPOSITORY" | awk '{print $3}' | peco)" | |
LBUFFER="docker run -ti -d $docker_image /bin/bash" | |
zle reset-prompt | |
} | |
zle -N peco-select-docker-image-run | |
bindkey "^x^d" peco-select-docker-image-run |
This file contains 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
import sys | |
import time | |
import subprocess | |
COUNT = 170 | |
def get_progressbar_str(progress): | |
args = ["tput", "cols"] | |
MAX_LEN = int(subprocess.check_output(args)) - 12 | |
BAR_LEN = int(MAX_LEN * progress) |
This file contains 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
# -*- coding: utf-8 -*- | |
COUNT = 170 | |
def get_progressbar_str(progress) | |
max_len = `tput cols`.to_i - 12 | |
bar_len = (max_len * progress).to_i | |
strings = "[" + "=" * bar_len | |
if bar_len < max_len | |
strings += ">" |
This file contains 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
# -*- coding: utf-8 -*- | |
COUNT = 170 | |
def get_progressbar_str(progress) | |
max_len = `tput cols`.to_i - 12 | |
bar_len = (max_len * progress).to_i | |
strings = "[" + "=" * bar_len | |
if bar_len < max_len | |
strings += ">" |
This file contains 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/sh | |
END=170 | |
COLUMNS=`tput cols`↲ | |
MAX_LEN=`expr $COLUMNS - 12` | |
progressbar(){ | |
bar_len=`echo "$MAX_LEN * $1/1" | bc` | |
printf "[" | |
if [ $bar_len -gt 0 ]; then |