Skip to content

Instantly share code, notes, and snippets.

Avatar

Gianfrancø Palumbo gianpaj

View GitHub Profile
@gianpaj
gianpaj / consoletable.js
Last active Jul 7, 2020
console.table for mongo shell - v1.0.2
View consoletable.js
// console.table for mongo shell - v1.0.2
// https://gist.github.com/gianpaj/63e04baed150f30b8976c16b16a0010c
// originally from 447dc8b on 18 Apr 2015
// https://github.com/chinchang/konsole.table/blob/447dc8be4bcb463865f0527ed6aef4da864d6558/index.js
var SEPARATOR = '│';
/**
* Repeat provided string a given no. of times.
@gianpaj
gianpaj / extractCSS.js
Created Mar 25, 2019
Extract used CSS from a page
View extractCSS.js
# Extract used CSS from a page
# https://stackoverflow.com/a/55334749/728287
#
# $ node extractCSS.js ~/Desktop/Coverage-20190325T110812.json
const fs = require('fs');
let final_css_bytes = '';
let total_bytes = 0;
let used_bytes = 0;
@gianpaj
gianpaj / Podfile
Created Nov 18, 2018
Podfile (Expo issue 2200)
View Podfile
source 'https://github.com/CocoaPods/Specs.git'
# Uncomment the next line to define a global platform for your project
platform :ios, '9.0'
target 'nov17' do
# Uncomment the next line if you're using Swift or would like to use dynamic frameworks
# use_frameworks!
# Pods for nov17
pod 'ExpoKit',
View node-js-uploader-and-serve.js
/**
Instructions:
npm init
npm install cors express multer
node node-js-uploader-and-serve.js
OR
@gianpaj
gianpaj / anim-button-from-input-fields.js
Last active Feb 24, 2018
animate button backgroundColor based input field's values - React Native
View anim-button-from-input-fields.js
import React from 'react';
import { Animated, View } from 'react-native';
import { FormInput } from 'react-native-elements';
import AnimButton from 'react-native-micro-animated-button';
export class LoginScreen extends React.Component {
PwdInput;
loginBtn;
animatedValue = new Animated.Value(0);
View gist:d60468997e12ac6cd113f115c09ea8e8
Verifying my Blockstack ID is secured with the address 1JKi921Q7E6o3BqUgVbogjt6QEdLxadWqF https://explorer.blockstack.org/address/1JKi921Q7E6o3BqUgVbogjt6QEdLxadWqF
@gianpaj
gianpaj / package-json-ionic-app-scripts-issue.diff
Created Oct 2, 2017
issue #1252 ionic-team/ionic-app-scripts
View package-json-ionic-app-scripts-issue.diff
diff -r /private/var/folders/nc/scs6t9xj61l7rtzhz8cl48480000gn/T/aj3Wga_package-lock.json ./package-lock.json
62c62
< "tsickle": "0.21.6"
---
> "tsickle": "https://registry.npmjs.org/tsickle/-/tsickle-0.21.6.tgz"
105,112d104
< }
< },
< "@angular/tsc-wrapped": {
< "version": "4.4.3",
@gianpaj
gianpaj / ecosystem.json
Created Apr 4, 2017
pm2 ecosystem.json
View ecosystem.json
{
"apps": [
{
"name": "my-app-1",
"script": "./server.data/index.js"
},
{
"name": "static-http",
"script": "npm",
"args": "start"
View gist:7267a8fd389c7546f5c7
Verifying that +gianpaj is my blockchain ID. https://onename.com/gianpaj
View keybase.md

Keybase proof

I hereby claim:

  • I am gianpaj on github.
  • I am gianpaj (https://keybase.io/gianpaj) on keybase.
  • I have a public key ASBxPEKRsg05dGhwvqTJX6_58PcvbVteLKxzBcBGoHHe5Ao

To claim this, I am signing this object:

You can’t perform that action at this time.