Skip to content

Instantly share code, notes, and snippets.

View Jonathan339's full-sized avatar
🎯
Focusing

Jonathan D. Dominguez Jonathan339

🎯
Focusing
View GitHub Profile
@Jonathan339
Jonathan339 / coc.lua
Created October 2, 2023 21:24 — forked from dinhmai74/coc.lua
cocnvim
local M = {
"neoclide/coc.nvim",
branch = "master",
build = "yarn install --frozen-lockfile",
}
M.config = function()
-- Some servers have issues with backup files, see #649
vim.opt.backup = false
vim.opt.writebackup = false
@Jonathan339
Jonathan339 / ubuntu-android.txt
Created September 20, 2022 23:52 — forked from mrk-han/ubuntu-android.txt
Setting up Linux Environment to run Espresso tests on Android x86 Emulator
# Android w/ x86 Emulator
## SETUP
sudo -S apt-get update && sudo apt-get upgrade -y
sudo -S apt-get install zip unzip wget git curl vim openjdk-8-jdk qemu-kvm -y
sudo -S adduser $USER kvm
mkdir -p Android/platforms
wget https://dl.google.com/android/repository/sdk-tools-linux-4333796.zip
unzip sdk-tools-linux-4333796.zip -d Android/
@Jonathan339
Jonathan339 / DateTime.js
Created August 23, 2020 18:52 — forked from mohanramphp/DateTime.js
DateTime Component using React hooks
import React, { useState, useEffect } from 'react';
export const DateTime = () => {
const [dateTime, setDateTime] = useState(new Date());
useEffect(() => {
const id = setInterval(() => setDateTime(new Date()), 1000);
return () => {
clearInterval(id);
}
@Jonathan339
Jonathan339 / progress.py
Created January 22, 2019 10:16 — forked from vladignatyev/progress.py
Python command line progress bar in less than 10 lines of code.
# The MIT License (MIT)
# Copyright (c) 2016 Vladimir Ignatev
#
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and associated documentation files (the "Software"),
# to deal in the Software without restriction, including without limitation
# the rights to use, copy, modify, merge, publish, distribute, sublicense,
# and/or sell copies of the Software, and to permit persons to whom the Software
# is furnished to do so, subject to the following conditions:
#
@Jonathan339
Jonathan339 / git-tag-delete-local-and-remote.sh
Created November 6, 2018 09:28 — forked from mobilemind/git-tag-delete-local-and-remote.sh
how to delete a git tag locally and remote
# delete local tag '12345'
git tag -d 12345
# delete remote tag '12345' (eg, GitHub version too)
git push origin :refs/tags/12345
# alternative approach
git push --delete origin tagName
git tag -d tagName
@Jonathan339
Jonathan339 / print_progress.py
Created March 13, 2018 17:48 — forked from aubricus/License
Python Progress Bar
# -*- coding: utf-8 -*-
# Print iterations progress
def print_progress(iteration, total, prefix='', suffix='', decimals=1, bar_length=100):
"""
Call in a loop to create terminal progress bar
@params:
iteration - Required : current iteration (Int)
total - Required : total iterations (Int)
@Jonathan339
Jonathan339 / terminalsize.py
Created March 12, 2018 23:30 — forked from jtriley/terminalsize.py
Get current terminal size on Linux, Mac, and Windows
#!/usr/bin/env python
import os
import shlex
import struct
import platform
import subprocess
def get_terminal_size():
""" getTerminalSize()