Skip to content

Instantly share code, notes, and snippets.


Block or report user

Report or block srhise

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
View grid.vue
<div class="grid">
<div class="column-headings">
<div class="column" v-for="column in columns">
<a v-if="column.sortable === true"><i class="fa fa-caret-down"></i></a>
<div class="grid-rows">
<div class="grid-row" v-for="row in data">
View serviceworker.js
/* in main.js it is successfully registering
if ('serviceWorker' in navigator) {
navigator.serviceWorker.register('js/serviceWorker.js').then(function(reg) {
// registration worked
console.log('Registration succeeded. Scope is ' + reg.scope);
}).catch(function(error) {
// registration failed
console.log('Registration failed with ' + error);
srhise / remove non empty directory
Created Sep 9, 2014
SSH - Remove non empty directory
srhise / SSH Upload
Last active Aug 29, 2015
Upload file via SSH
View SSH Upload
scp file-name.tar.gz user@xx.x.x.xx:/var/www
View mySQL Login
# param'd'#
mysql -h {hostname} -u {username}
# example #
mysql -h localhost -u root
View Ubuntu Commands I need
# Edit PHP.INI
cd /etc/php5/apache2
sudo vi php.ini
# Restart Apache
sudo service apache2 restart
View GruntFile-moduleexports.js
grunt.registerTask('default', [ 'concat:css', 'cssmin:css', 'concat:js', 'uglify:js' ]);
srhise / Gruntfile.js
Created Jan 30, 2014
Simple Grunt Setup (2 Files)
View Gruntfile.js
module.exports = function (grunt) {
pkg: grunt.file.readJSON('package.json'),
concat: {
css: {
src: [
dest: 'combined.css'
srhise / package.json
Created Jan 30, 2014
Grunt package.json example
View package.json
"name" : "MyTestProject",
"title" : "test",
"version" : "1.0.0",
"devDependencies": {
"grunt": "0.4.1",
"grunt-contrib-concat": "0.1.3",
"grunt-contrib-cssmin" : "0.6.1",
"grunt-contrib-watch" : "0.5.3",
"grunt-contrib-uglify" : "0.2.0"
You can’t perform that action at this time.