Skip to content

Instantly share code, notes, and snippets.

Gianfrancø Palumbo gianpaj

Block or report user

Report or block gianpaj

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
gianpaj / consoletable.js
Created Mar 31, 2019
konsole.table for mongo shell
View consoletable.js
// originally from 447dc8b on 18 Apr 2015
var SEPARATOR = "";
* Repeat provided string a given no. of times.
* @param {number} amount Number of times to repeat.
* @param {string} str Character(s) to repeat
* @return {string} Repeated string.
gianpaj / extractCSS.js
Created Mar 25, 2019
Extract used CSS from a page
View extractCSS.js
# Extract used CSS from a page
# $ node extractCSS.js ~/Desktop/Coverage-20190325T110812.json
const fs = require('fs');
let final_css_bytes = '';
let total_bytes = 0;
let used_bytes = 0;
gianpaj / Podfile
Created Nov 18, 2018
Podfile (Expo issue 2200)
View Podfile
source ''
# 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',
gianpaj / App.js
Created Nov 12, 2018
FreshChat React Native
View App.js
* Sample React Native App
* @format
* @flow
import React, {Component} from 'react';
import {Button, Platform, StyleSheet, Text, View} from 'react-native';
View components with empty component.json
"filter": {},
"sortBy": null,
"coordinates": [
"type": "npm",
"provider": "npmjs",
"name": "typescript",
"revision": "2.7.2"
View gist:e7090f41901dff9b630bd840c38f5264
* Exception is:
org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':react-native-i18n:verifyReleaseResources'.
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(
at org.gradle.api.internal.tasks.execution.OutputDirectoryCreatingTaskExecuter.execute(
at org.gradle.api.internal.tasks.execution.SkipUpToDateTaskExecuter.execute(
at org.gradle.api.internal.tasks.execution.ResolveTaskOutputCachingStateExecuter.execute(
at org.gradle.api.internal.tasks.execution.ValidatingTaskExecuter.execute(
at org.gradle.api.internal.tasks.execution.SkipEmptySourceFilesTaskExecuter.execute(SkipEmptySourceFilesTaskExecuter
View node-js-uploader-and-serve.js
npm init
npm install cors express multer
node node-js-uploader-and-serve.js
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 {
animatedValue = new Animated.Value(0);
View gist:d60468997e12ac6cd113f115c09ea8e8
Verifying my Blockstack ID is secured with the address 1JKi921Q7E6o3BqUgVbogjt6QEdLxadWqF
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
< "tsickle": "0.21.6"
> "tsickle": ""
< }
< },
< "@angular/tsc-wrapped": {
< "version": "4.4.3",
You can’t perform that action at this time.