Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@dsvanidze
dsvanidze / reactives-in-loops.R
Created March 23, 2024 13:42 — forked from bborgesr/reactives-in-loops.R
How to use reactives in loops. What works, what doesn't and why.
# -------------------------------------------------------------------
# ------------------ REACTIVES INSIDE FOR LOOPS ---------------------
# -------------------------------------------------------------------
# -------------------------------------------------------------------
# --- EXAMPLE 1: this works fine, because there are no reactives in -
# --- the for lopp --------------------------------------------------
# -------------------------------------------------------------------
library(shiny)
@dsvanidze
dsvanidze / .block
Created June 27, 2023 15:27 — forked from nbremer/.block
Self Organizing Map - Heatmap - D3
license: mit
@dsvanidze
dsvanidze / .block
Created June 27, 2023 15:27 — forked from nbremer/.block
Self Organizing Map - Hexagonal Heatmap - Lines
license: mit
@dsvanidze
dsvanidze / README.md
Created June 23, 2019 05:40 — forked from hofmannsven/README.md
Git Cheatsheet
@dsvanidze
dsvanidze / remove-node-modules.md
Created April 1, 2019 07:41 — forked from lmcneel/remove-node-modules.md
How to remove node_modules after they have been added to a repo

How to remove node_modules

  1. Create a .gitignore file in the git repository if it does not contain one

touch .gitignore 2. Open up the .gitignore and add the following line to the file

node_modules 3. Remove the node_modules folder from the git repository

@dsvanidze
dsvanidze / Install Composer using MAMP's PHP.md
Created June 29, 2018 08:34 — forked from irazasyed/Install Composer using MAMP's PHP.md
Instructions on how to change preinstalled Mac OS X PHP to MAMP's PHP Installation and then install Composer Package Management

Change default Mac OS X PHP to MAMP's PHP Installation and Install Composer Package Management


Instructions to Change PHP Installation


First, Lets find out what version of PHP we're running (To find out if it's the default version).

To do that, Within the terminal, Fire this command:

which php

@dsvanidze
dsvanidze / gist:05ac31919f8a49aacd44f0b867229fde
Created May 6, 2018 09:46 — forked from tonymtz/gist:d75101d9bdf764c890ef
Uninstall nodejs from OSX Yosemite
# first:
lsbom -f -l -s -pf /var/db/receipts/org.nodejs.pkg.bom | while read f; do sudo rm /usr/local/${f}; done
sudo rm -rf /usr/local/lib/node /usr/local/lib/node_modules /var/db/receipts/org.nodejs.*
# To recap, the best way (I've found) to completely uninstall node + npm is to do the following:
# go to /usr/local/lib and delete any node and node_modules
cd /usr/local/lib
sudo rm -rf node*
@dsvanidze
dsvanidze / Deploy With Git
Created February 22, 2018 18:01 — forked from calebbrewer/Deploy With Git
Manage and deploy a website with Git. I am using Lunux CentOS for my server.
Video on this Gist: https://www.youtube.com/watch?v=zvpLDuRY4ss&feature=c4-overview&list=UUj8_147vA3FQ1quI_CjciIQ
#Initialize a bare repo on the webserver. This would preferably be outside of your public website dir but if you are on a shared host you may not have that option. I like to make a folder just outside of the live folder called git. So for me it would look like this…
$ cd /var/www
$ mkdir git && cd git
$ git init –-bare
#Now you need to create a post-receive hook that will check out the latest tree from the Git repo you just setup into the /var/www/html folder where you want your website to be. You can make this whatever folder you want your code to end up in.
#This will create a file called post-receive in the hooks dir of the git repo.