Skip to content

Instantly share code, notes, and snippets.

View noblesilence's full-sized avatar
🏠
Working from home

Aye Aye Mon noblesilence

🏠
Working from home
View GitHub Profile
@noblesilence
noblesilence / gulpfile.js
Created May 12, 2018 03:35 — forked from atelic/gulpfile.js
Basic gulpfile for minify and concat css and javascript
/*
Before using make sure you have:
npm install --save-dev gulp gulp-minify-css gulp-concat gulp-uglify gulp-autoprefixer gulp-sass
Make sure to change the directory names in the default watch function to the CSS/SCSS/SASS directories you are using so it reloads
*/
var gulp = require('gulp'),
minifyCSS = require('gulp-minify-css'),
concat = require('gulp-concat')
@noblesilence
noblesilence / PhotoAdapter.java
Created August 13, 2016 04:55 — forked from jirivrany/PhotoAdapter.java
Example of undo action for Android RecyclerView onSwipe.
public class PhotoAdapter extends RecyclerView.Adapter<PhotoAdapter.PhotoViewHolder> implements View.OnClickListener {
private ArrayList<Photo> photos;
public ArrayList<Photo> photosToRemove;
private OnItemClickListener onItemClickListener;
private Context context;
public PhotoAdapter(Context context, ArrayList<Photo> photos, Map<Integer, String> authors, int colHeigth) {