Skip to content

Instantly share code, notes, and snippets.

Avatar
👽
area51

Vincent Aceto vinnyA3

👽
area51
View GitHub Profile
@vinnyA3
vinnyA3 / logging-swift
Created Mar 26, 2021
swift access log
View logging-swift
import UIKit
import AVKit
import AVFoundation
class ViewController: UIViewController {
@IBOutlet weak var playerContainer: UIView!
var player: AVPlayer = VideoPlayer.initPlayer()
var playerItem: AVPlayerItem?
@vinnyA3
vinnyA3 / seed-helpers.js
Created Mar 3, 2019
SDC Deliverables (Phase1)
View seed-helpers.js
const faker = require('faker');
const randomIntGenerator = (min, max) => {
const ceilMin = Math.ceil(min);
const floorMax = Math.floor(max);
return Math.floor(Math.random() * (floorMax - ceilMin + 1)) + ceilMin;
};
const fakeComments = (() => {
const comments = [];
@vinnyA3
vinnyA3 / 2019-02-19_1920x1080.png
Last active Feb 19, 2019
FEC (Team Arendelle): Product Cart Screenshot
@vinnyA3
vinnyA3 / controllers.js
Last active Feb 19, 2019
FEC (Team Arendelle): API Endpoints and sample responses
View controllers.js
const axios = require('axios');
const genRandomInt = require('utils/genRandInt');
const db = require('db/connection');
const { API_KEY } = require('config/config');
module.exports = {
getGeolocation: (req, res) => {
const { long, lat } = req.query;
if (!long || !lat) {
return res.send({
@vinnyA3
vinnyA3 / .babelrc
Last active Feb 8, 2019
Webpack(v4) Development Boilerplate w/ React, CSS Modules, Babel
View .babelrc
{
"presets": [
"@babel/preset-env",
"@babel/preset-react"
]
}
@vinnyA3
vinnyA3 / bluealsa
Last active Aug 5, 2018
dm-bluealsa: convenience scripts to manage the default alsa sound device (bluetooth x default hw sound card)
View bluealsa
#!/bin/bash
# bluealsa wrapper
# if script isn't running with root privileges,
# kindly exit
if [[ $EUID -ne 0 ]]; then
echo "This script must be run as root"
exit 1
fi
@vinnyA3
vinnyA3 / funimation-debug.log
Created Jul 3, 2018
Debug log for the funimation streamlink plugin
View funimation-debug.log
[cli][debug] OS: Linux-4.14.51-1-lts-x86_64-with-arch
[cli][debug] Python: 3.6.5
[cli][debug] Streamlink: 0.14.2
[cli][debug] Requests(2.19.1), Socks(1.6.7), Websocket(0.48.0)
Enter funimationnow password:
[cli][info] Found matching plugin funimationnow for URL https://www.funimation.com/shows/fairy-tail/turbulent-showdown-natsu-vs-laxus/uncut/?lang=english
[cli][debug] Plugin specific arguments:
[cli][debug] --funimation-email=<myemail> (email)
[cli][debug] --funimation-password=******** (password)
[cli][debug] --funimation-language=english (language)
@vinnyA3
vinnyA3 / compareAlacritty.txt
Last active Dec 23, 2017
Compare Setups :: alfunx -> vinnya3
View compareAlacritty.txt
1c1
< # Configuration for Alacritty, the GPU enhanced terminal emulator
---
> #0 Configuration for Alacritty, the GPU enhanced terminal emulator
24c24
< # Adds this many blank pixels of padding around the window
---
> #0 Adds this many blank pixels of padding around the window
28,29c28,29
< x: 1