Skip to content

Instantly share code, notes, and snippets.

View afalchi82's full-sized avatar

Alessandro Falchi afalchi82

View GitHub Profile
@afalchi82
afalchi82 / readme.md
Created April 21, 2019 21:25
test flowchart
st=>start: Start
e=>end: End
op=>operation: My Operation
op2=>operation: lalala
cond=>condition: Yes or No?

st->op->op2->cond
cond(yes)->e
cond(no)->op2
@afalchi82
afalchi82 / gulpfile.js
Created January 15, 2018 08:58
Gulpfile for static Bootstrap website
/* ----------------------------------------------------
Common commands
gulp dev
gulp custom-bootstrap
gulp copy-vendors
---------------------------------------------------- */
@afalchi82
afalchi82 / face-mosaic.markdown
Created September 17, 2017 09:41
Face mosaic
@afalchi82
afalchi82 / addFlexSliderSlide.js
Created September 23, 2015 07:31
Add slide to FlexSlider 2
var s = $('.flexslider'),
// Clone another slide markup
newSlide = s.find('li').eq(0).clone()
// Change image source
.find('img').attr('src', 'http://www.awwwards.com/awards/submissions/2015/09/5601375a79570.jpeg')
// Return parent element
.end();
@afalchi82
afalchi82 / DieHelvetica.js
Last active September 21, 2015 19:40
Kill Helvetica Neue
var fucker = 'helvetica neue',
allElementsArr = document.querySelectorAll('*');
for( var i=0; i < allElementsArr.length; i++ ) {
var element = allElementsArr[i],
fontStack = getComputedStyle(element)['font-family'].toLowerCase();
if( fontStack.indexOf(fucker) !== -1 ) {
var newStack = fontStack.replace(fucker, 'fuck');
@afalchi82
afalchi82 / angular.js
Created September 10, 2015 10:40
Notes about common AngularJS elements
/* -------------------------------------------
Service
--------------------------------------------*/
// Definizione
module.service('myService', function() {
this.browsers = ['Firefox', 'Chrome', 'Internet Explorer'];
});
// Implementazione
@afalchi82
afalchi82 / git.txt
Last active September 11, 2015 15:19
Git common operations summary
# Set your user name and email address
$ git config --global user.name "John Doe"
$ git config --global user.email [email protected]
# Checking Your Settings
$ git config --list
# Clones a repository to your computer
# To grab a complete copy of another user's repository, use git clone like this: