Skip to content

Instantly share code, notes, and snippets.

View anargu's full-sized avatar

Anthony Arostegui anargu

View GitHub Profile
@anargu
anargu / startup.sh
Last active October 31, 2018 21:48
my startup file after install a new linux distro/OS
#!/bin/bash
#git
sudo apt install git
# nvm
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.11/install.sh | bash
nvm install node
@anargu
anargu / .vimrc
Last active December 6, 2020 07:06
vim configuration
"if has('python3')
"endif
" let g:pymode_python = 'python3'
" let g:pymode_rope = 0
" Specify a directory for plugins
" - Avoid using standard Vim directory names like 'plugin'
call plug#begin('~/.vim/plugged')
@anargu
anargu / pentadecathlon
Created March 2, 2021 03:01
asciified_tiny_gol
...........
...oo.oo...
...oo.oo...
....o.o....
..o.o.o.o..
..o.o.o.o..
..oo...oo..
...........
...........
@anargu
anargu / app_code.dart
Created March 11, 2021 22:54
Firebase Storage Test (Attempt)
// boring app code ...
Future<dynamic> thefuntion() async {
final thumbnailFile = File('some/path');
final uploadThumbnailTask = _storage
.ref('thumbnails/1234/something')
.putFile(thumbnailFile);
final uploadThumbnailSnapshot =
@anargu
anargu / charming.min.js
Last active March 23, 2021 21:49
Text Effect for a title in HTML
!function(e){"undefined"==typeof module?this.charming=e:module.exports=e}(function(e,n){"use strict";n=n||{};var t=n.tagName||"span",o=null!=n.classPrefix?n.classPrefix:"char",r=1,a=function(e){for(var n=e.parentNode,a=e.nodeValue,c=a.length,l=-1;++l<c;){var d=document.createElement(t);o&&(d.className=o+r,r++),d.appendChild(document.createTextNode(a[l])),n.insertBefore(d,e)}n.removeChild(e)};return function c(e){for(var n=[].slice.call(e.childNodes),t=n.length,o=-1;++o<t;)c(n[o]);e.nodeType===Node.TEXT_NODE&&a(e)}(e),e});
@anargu
anargu / main.go
Created July 20, 2021 13:20
PostComments API into CSV
package main
import (
"io/ioutil"
"net/http"
"encoding/json"
"encoding/csv"
"strings"
"fmt"
"strconv"
@anargu
anargu / dotfiles-install.sh
Created December 25, 2021 17:10
Install dotfiles
git clone --bare [email protected]:anargu/dotfiles.git $HOME/.cfg
function config {
/usr/bin/git --git-dir=$HOME/.cfg/ --work-tree=$HOME $@
}
mkdir -p .config-backup
config checkout
if [ $? = 0 ]; then
echo "Checked out config.";
else
echo "Backing up pre-existing dot files.";