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
git config --global user.useConfigOnly true |
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
xcrun simctl io booted recordVideo filename.mov |
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 | |
import PlaygroundSupport | |
// For the Playground only: creating an UIView where the next UIView will be shown on | |
let container = UIView(frame: CGRect(x: 0, y: 0, width: 500, height: 500)) | |
container.backgroundColor = .white | |
// The interesting stuff | |
let viewShadow = UIView(frame: CGRect(x: 0, y: 0, width: 120, height: 120)) | |
viewShadow.center = container.center |
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
if #available(iOS 11.0, *) { | |
if (UIApplication.shared.keyWindow?.safeAreaInsets != UIEdgeInsets.zero) { | |
print("I am an iPhone X") | |
} | |
} |
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 pandas as pd | |
input_file = "input.csv" | |
output_file = "output_find.csv" | |
sep = ";" | |
df = pd.DataFrame.from_csv(input_file, sep=sep) | |
column1 = df['one'] > 123 | |
column2 = df['two'] == "something" |
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 pandas as pd | |
input_file = "input.csv" | |
output_file = "output.csv" | |
sep = ";" | |
columns = ["column1", "column2", "anotherone"] | |
df = pd.DataFrame.from_csv(input_file, sep=sep) | |
df.drop(df[columns], axis=1, inplace=True) | |
df.to_csv(output_file, sep=sep) |
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>Ansi 0 Color</key> | |
<dict> | |
<key>Alpha Component</key> | |
<real>1</real> | |
<key>Blue Component</key> | |
<real>0.37254902720451355</real> |
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
ZSH_THEME="bullet-train" | |
BULLETTRAIN_PROMPT_CHAR="➤" | |
BULLETTRAIN_DIR_EXTENDED=2 | |
BULLETTRAIN_NVM_SHOW=true | |
BULLETTRAIN_EXEC_TIME_SHOW=false | |
BULLETTRAIN_EXEC_TIME_BG="yellow" | |
BULLETTRAIN_EXEC_TIME_FG="black" | |
BULLETTRAIN_VIRTUALENV_FG="black" |
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>Ansi 0 Color</key> | |
<dict> | |
<key>Alpha Component</key> | |
<real>1</real> | |
<key>Blue Component</key> | |
<real>0.37254902720451355</real> |
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/bash | |
# | |
# To use: | |
# ./cloudflare_check.sh list.csv | |
# ./cloudflare_check.sh urls.txt | |
# | |
# I made this to check my 1Password logins. | |
# You can export all of your logins by going into | |
# File > Export > All Items | |
# http://i.imgur.com/orMuAob.jpg |