ssh <server>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| upload(files) { | |
| const config = { | |
| onUploadProgress: function(progressEvent) { | |
| var percentCompleted = Math.round((progressEvent.loaded * 100) / progressEvent.total) | |
| console.log(percentCompleted) | |
| } | |
| } | |
| let data = new FormData() | |
| data.append('file', files[0]) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?xml version="1.0"?> | |
| <ruleset name="MyStandard"> | |
| <description> | |
| PSR2 with changes: | |
| * tabs instead of spaces (https://gist.github.com/gsherwood/9d22f634c57f990a7c64) | |
| * bracers on end of line instead new line | |
| </description> | |
| <!-- tabs --> | |
| <arg name="tab-width" value="4"/> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?xml version="1.0" encoding="UTF-8"?> | |
| <ruleset name="Symfony2"> | |
| <!-- There should not be any code in the bundle Resources directory. --> | |
| <exclude-pattern>*/Resources/*</exclude-pattern> | |
| <rule ref="Generic.Classes.DuplicateClassName.Found"><severity>0</severity></rule> | |
| <rule ref="Generic.CodeAnalysis.EmptyStatement.NotAllowed"><severity>2</severity></rule> | |
| <rule ref="Generic.CodeAnalysis.EmptyStatement.NotAllowedWarning"><severity>4</severity></rule> | |
| <rule ref="Generic.CodeAnalysis.ForLoopShouldBeWhileLoop.CanSimplify"><severity>4</severity></rule> | |
| <rule ref="Generic.CodeAnalysis.ForLoopWithTestFunctionCall.NotAllowed"><severity>2</severity></rule> | |
| <rule ref="Generic.CodeAnalysis.JumbledIncrementer.Found"><severity>2</severity></rule> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| javascript:(function(){document.activeElement.value=document.activeElement.value+'¯\\_(ツ)_/¯';})(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * | |
| * Gulpfile setup | |
| * | |
| * @since 1.0.0 | |
| * @authors Ahmad Awais, @digisavvy, @desaiuditd, @jb510, @dmassiani and @Maxlopez | |
| * @package neat | |
| * @forks _s & some-like-it-neat | |
| */ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # encoding: utf8 1,1 Top# encoding: utf8 | |
| import argparse | |
| from datetime import datetime | |
| import json | |
| from random import randint | |
| import requests | |
| import sys | |
| from time import sleep |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var gulp = require('gulp'); | |
| var clean = require('gulp-clean'); | |
| var jshint = require('gulp-jshint'); | |
| var concat = require('gulp-concat'); | |
| var uglify = require('gulp-uglify'); | |
| var imagemin = require('gulp-imagemin'); | |
| var bases = { | |
| app: 'app/', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| find . -type d -empty -exec touch {}/.gitkeep \; |