Skip to content

Instantly share code, notes, and snippets.

Tobias quagliero

Block or report user

Report or block quagliero

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@quagliero
quagliero / keybase.md
Created Jul 2, 2018
keybase verification
View keybase.md

Keybase proof

I hereby claim:

  • I am quagliero on github.
  • I am quag (https://keybase.io/quag) on keybase.
  • I have a public key ASDK0Ac6ewigVmjFFmxAZ0Lr1NS6V3U_4OLLCGkZaPrXWAo

To claim this, I am signing this object:

@quagliero
quagliero / README.md
Last active Jul 15, 2019
Installing cpuminer-multi on macOS 10.13.2 (High Sierra)
View README.md

Installing cpuminer-multi on macOS 10.13.2 (High Sierra)

This assumes you have brew installed and are comfortable using a terminal.

Following the guide on https://github.com/tpruvot/cpuminer-multi will likely lead to errors about invalid paths to OpenSSL, and neoscrypt errors to the tune of Undefined symbols for architecture x86_64 during the build. I managed to piece together different fixes into an installation that has worked for me. So I hope it works for you.

Requirements

Ensure a c compiler is installed. Type g++ in the terminal and continue with the xcode installation if necessary. If it prints clang: error: no input files, then you can proceed.

View draft-scrape.js
var osmosis = require('osmosis');
const teamsPicks = [];
osmosis.get('http://chumbo.league.fantasy.nfl.com/league/874089/history/2014/draftresults?draftResultsDetail=0&draftResultsTab=round&draftResultsType=results')
.find('#leagueDraftResultsResults .results .wrap > ul > li')
.set({
pick: '.count',
player: '.playerNameFull',
team: '.tw ul li.first',
View .hyper.js
// Future versions of Hyper may add additional config options,
// which will not automatically be merged into this file.
// See https://hyper.is#cfg for all currently supported options.
module.exports = {
config: {
// default font size in pixels for all tabs
fontSize: 13,
// font family with optional fallbacks
@quagliero
quagliero / gist:fdf51e3299768fa2f818
Created Feb 4, 2015
NFL Fantasy League History Almanac scrape
View gist:fdf51e3299768fa2f818
var req = require('request');
var cheerio = require('cheerio');
req('http://fantasy.nfl.com/league/874089/history', function (error, response, body) {
if (!error && response.statusCode == 200) {
var $ = cheerio.load(body);
console.log('\n');
$('[class*="history-champ"]').each(function (i, e) {
var $row = $(e);
var year = $row.find('.historySeason').text();
View .gitconfig
[user]
name = <name>
email = <email>
[color]
ui = true
[alias]
changes = diff --name-status -r
new = !sh -c 'git log $1@{1}..$1@{0} "$@"'
View .vimrc
set nocompatible " be iMproved, required
filetype off " required
" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
" alternatively, pass a path where Vundle should install plugins
"call vundle#begin('~/some/path/here')
" let Vundle manage Vundle, required
View aside.css
.module {
padding: 5px;
}
.module--funky {
background-color: hotpink;
}
.module__title {
font-size: 1.4rem;
View aside.html
<aside class="module module--funky">
<h3 class="module__title">Title</h3>
<section class="module__text">
<p>bla bla bla</p>
<img class="module__img" src="img/foo.png">
<a href="/bar" class="module__link">Read more</a>
</section>
</aside>
@quagliero
quagliero / gulpfile.js
Last active Jan 31, 2017
Gulpfile for Symfony2 Bundle assets (non-production)
View gulpfile.js
var gulp = require('gulp');
var gutil = require('gulp-util');
var sass = require('gulp-ruby-sass');
// var sass = require('gulp-sass');
var jshint = require('gulp-jshint');
var concat = require('gulp-concat');
var rename = require('gulp-rename');
var browserSync = require('browser-sync');
var url = 'site.dev';
You can’t perform that action at this time.