Skip to content

Instantly share code, notes, and snippets.

Jayesh Anandani jayeshanandani

Block or report user

Report or block jayeshanandani

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
dominikwilkowski /
Last active Feb 22, 2019 — forked from evangs/delete-old-files.js
Batch delete old files from Slack

Batch delete old file from your slack workspace

Freeing space

To free up some space in your slack workspace and having to delete each file by hand

To run the app you first need a legacy token from slack for your workspace. Then download the cleanSlack.js file and run it via Node.js.

By default the script will delete files older than a year. You can change that in the TIMESTAMP variable.

calebporzio / HiddenInput.vue
Created May 2, 2018
Little Vue component for turning JSON into native HTML for inputs
View HiddenInput.vue
import _ from 'lodash'
export default {
props: [ 'name', 'value' ],
methods: {
flatInputsFromDeepJson(item, key, h) {
if (typeof item === 'object') {
return _.flatMapDeep(item, (value, newKey) => {
phpdreams / rebuild-cache.php
Created Apr 28, 2018
Speaker List Cache Generation
View rebuild-cache.php
// this will read in all the speakers, sort them by date, then store in a file for use later
$speakerList = [
$speakers_all = [];
foreach($speakerList as $speaker) {
$speakers_all[$speaker] = include_once("./speakers/{$speaker}.php");
$speakers_all[$speaker]['bullet-points'] = text2bullets($speakers_all[$speaker]['bullet-points']);



None of the string methods modify this – they always return fresh strings.

  • charAt(pos: number): string ES1

    Returns the character at index pos, as a string (JavaScript does not have a datatype for characters). str[i] is equivalent to str.charAt(i) and more concise (caveat: may not work on old engines).

GhazanfarMir /
Last active Nov 11, 2019
Install PHP7.2 NGINX and PHP7.2-FPM on Ubuntu 16.04
########## Install NGINX ##############
# Install software-properties-common package to give us add-apt-repository package
sudo apt-get install -y software-properties-common
# Install latest nginx version from community maintained ppa
sudo add-apt-repository ppa:nginx/stable
# Update packages after adding ppa
bseib / vue-datatables-example.html
Created Dec 13, 2017
Vue + DataTables + load once
View vue-datatables-example.html
<!DOCTYPE html>
<title>Example Vue + DataTables</title>
<!-- I happened to be using the bootstrap styling w/ DataTables. You may not need this. -->
<link rel="stylesheet" href="/path/to/datatables/DataTables-1.10.16/css/dataTables.bootstrap4.min.css">
<div id="example-page">
abdullah353 / .gitlab-ci.yml
Created Jul 15, 2017
Basic skeleton of Gitlab CI integration with AWS Lambda for auto deployments.
View .gitlab-ci.yml
image: docker:latest
- apt-get update -y # Updating the Ubuntu Docker instance.
- python -V # Print out python version for debugging.
- apt install -y zip jq
- pip install awscli --upgrade --user
- export PATH=~/.local/bin:$PATH # Required for awscli.
- aws --version # Print out aws cli version for debugging.
JacobBennett /
Last active Nov 19, 2019
Clean up your Vue modules with ES6 Arrow Functions

Recently when refactoring a Vue 1.0 application, I utilized ES6 arrow functions to clean up the code and make things a bit more consistent before updating to Vue 2.0. Along the way I made a few mistakes and wanted to share the lessons I learned as well as offer a few conventions that I will be using in my Vue applications moving forward.

The best way to explain this is with an example so lets start there. I'm going to throw a rather large block of code at you here, but stick with me and we will move through it a piece at a time.


// require vue-resource...

new Vue({
View run.php
- "kriswallsmith/buzz: ^0.15.0"
- "symfony/console: ^3.2@dev"
// Find you token on
use Buzz\Message\Response;
dtomasi / default
Last active Nov 6, 2019
Brew Nginx PHP7
View default
server {
listen 80;
server_name localhost;
root /Users/YOUR_USERNAME/Sites;
access_log /Library/Logs/default.access.log main;
location / {
include /usr/local/etc/nginx/conf.d/php-fpm;
You can’t perform that action at this time.