Skip to content

Instantly share code, notes, and snippets.

View gscoppino's full-sized avatar

Giuseppe Scoppino gscoppino

View GitHub Profile
@gscoppino
gscoppino / Software.txt
Created September 24, 2021 17:09
Just a place to keep track of some software that is useful for specific use cases.
# Software
## Mind Mapping / Exploration
FreeMind: https://sourceforge.net/projects/freemind/
#!/bin/sh
# Expects sway to be installed
# Not much here atm
mkdir -p ~/.config/sway
cp /etc/sway/config ~/.config/sway/config
exit 0
#!/bin/sh
set -e # fail on error
set -u # fail on access to unset variable
set -x # write commands (post-expansion) to STDERR as they are executed
# configure network services
systemctl start systemd-resolved.service
systemctl enable systemd-resolved.service
mkdir -p /etc/iwd
#!/bin/sh
set -e # fail on error
set -u # fail on access to unset variable
set -x # write commands (post-expansion) to STDERR as they are executed
# bootstrap system
pacman -S iwd vi tmux lynx man-db man-pages
pacman -S mesa wayland xorg-server-xwayland
{
"folders": [
{
"path": "."
}
],
"settings": {
"files.encoding": "utf8",
"editor.detectIndentation": false, // Needed to set spaces, tab size
"editor.insertSpaces": true,
@gscoppino
gscoppino / store.js
Created November 1, 2016 19:58
$ngRedux with Immutable slices
import angular from 'angular';
import ngRedux from 'ng-redux';
import thunk from 'redux-thunk';
import createLogger from 'redux-logger';
import RootReducer from './reducers/reducers';
function immutable(mutable) {    return JSON.parse(JSON.stringify(mutable));}
StoreConfig.$inject = ['$ngReduxProvider', 'rootReducerProvider'];
function StoreConfig($ngReduxProvider, rootReducerProvider) {    let rootReducer = rootReducerProvider.createReducer();    let middlewares = [        thunk,        createLogger({ level: 'info', collapsed: true })    ];    $ngReduxProvider.createStoreWith(rootReducer, middlewares);}
@gscoppino
gscoppino / gulpfile.js
Last active January 14, 2016 23:41
Karma with support for test all and test module
/**
* Assuming karma.conf.js like:
* ====================================
* module.exports = function (config) {
config.set({
files: [
'my',
'required',
'files'
]
@gscoppino
gscoppino / scripts.js
Last active January 25, 2016 02:07
ES2015 Resource Definition Module
/* Angular 1.x ES2015 Resource Definition Module
* @depends: gulp, gulp-plumber, gulp-jspm, gulp-rename, gulp-sourcemaps, gulp-watch, gulp-batch
* JSPM must be set up for the project.
* @input(s): A single JS file that serves as the entry module to the application.
* @output(s): A single minified JS file that contains all of the applications modules and the SystemJS bootstrap.
* A single sourcemap that allows the sources to be inspected in the debugger.
*/
// Node imports
import path from 'path';
@gscoppino
gscoppino / styles.js
Last active January 25, 2016 02:04
SASS Resource Definition Module
/* Sass Resource Definition Module
* @depends: gulp, gulp-plumber, gulp-sass, gulp-autoprefixer, gulp-rename,
* gulp-sourcemaps, gulp-watch, gulp-batch
* @input(s): A single SCSS file that resolves any others needed via imports
* @output(s): A single minified CSS file that has all properties autoprefixed for modern browsers.
* A single sourcemap that allows the sources to be properly inspected in the browser.
*/
// Node imports
import path from 'path';