Skip to content

Instantly share code, notes, and snippets.

View SergioGeeK7's full-sized avatar
🏠
Working from home

Sergio A. SergioGeeK7

🏠
Working from home
View GitHub Profile
[ -f /etc/hosts ] && echo "Found" || echo "Not found"
sudo chown -R $(whoami) /usr/local/share/man/man7
brew install wget
# ios
wget https://sourceforge.net/projects/opencvlibrary/files/opencv-ios/3.4.1/opencv-3.4.1-ios-framework.zip
unzip -a opencv-3.4.1-ios-framework.zip
cd ios
cp -r ./../opencv2.framework ./
cd ..
accessibilityRole="button"
netstat -vanp tcp | grep 3000
sudo lsof -i tcp:3000
kill -9 PID
kill $(lsof -t -i :YOUR_PORT_NUMBER)
echo 'free-port() { kill "$(lsof -t -i :$1)"; }
kill-port() { kill -kill "$(lsof -t -i :$1)"; }' \
>> ~/.bashrc && source ~/.bashrc
@SergioGeeK7
SergioGeeK7 / font.css
Last active September 19, 2018 22:24
letter-spacing: -17px;
line-height: 311px;
overflow: hidden;
left: -45px;
clip: rect(85px 450px 395px 45px);
let n = 0;
const pro = () => {
return Promise.resolve(++n);
};
const stored = pro();
stored.then(a => console.log(a));
stored.then(a => console.log(a));
stored.then(a => console.log(a));
// ---------------------
const START_LISTENING_GAME_STATE_CHANGE = 1000 * 60 * 5;
const value = Number(configData && key && configData[key]);
const { data: {viewer: {content: {videos = {}} = {}} = {}} = {},} = response;
width: 100,
height: scoreboardHeight,
borderBottomWidth: scoreboardHeight,
borderLeftColor: COLORS.CLEAR_COLOR,
borderRightColor: COLORS.CLEAR_COLOR,
borderStyle: "solid",
position: "absolute"
},
leftTrapezoid: {
borderLeftWidth: 0,
32 * 20 / 100 = 6.4 === 6.4 * 100 / 32
32 * 90 / 100 = 28.8 === 28.8 * 100 / 32