Skip to content

Instantly share code, notes, and snippets.

View alexmanzo's full-sized avatar

Alex Manzo alexmanzo

View GitHub Profile
@alexmanzo
alexmanzo / launch.json
Created March 5, 2021 15:47
VSCode Xdebug Settings for Drupal
{
"version": "0.2.0",
"configurations": [
{
"name": "Listen for XDebug",
"type": "php",
"request": "launch",
"port": 9000,
"pathMappings": {
"/var/www/html": "${workspaceRoot}"
@alexmanzo
alexmanzo / cloudSettings
Last active September 30, 2021 15:45
Visual Studio Code Settings Sync Gist
{"lastUpload":"2021-09-30T15:45:11.822Z","extensionVersion":"v3.4.3"}
@alexmanzo
alexmanzo / button.js
Last active September 12, 2019 20:35
Sample JS for Drupal + Storybook projects
/*
The code below is an example of writing JS code within Savas Labs Drupal projects using Storybook.
This does not work for event binding in Storybook, only on the Drupal site.
All JS files should be stored in the {theme}/storybook/components directory in the folder corresponding with
the appropriate component. For example, the below code would be stored in storybook/components/atoms/button.
All .js or .ts files within the storybook/components directory are compiled into {theme}/build/scripts.js.
@alexmanzo
alexmanzo / movieSearch.js
Last active August 4, 2020 15:26
Movie Search
// This file contais three solutions: One using promises, my original solution to the HackerRank problem, and one using Axios //
// ----- Solution Using Promises ------ //
var https = require('https');
const getMovieData = (url) => {
return new Promise((resolve, reject) => {
https.get(url, res => {
import AlertModal from "../AlertModal.vue";
import DoughnutChart from "../DoughnutChart.js";
import Navigation from "../Navigation.vue";
import { mapState } from "vuex";
import moment from "moment";
const BrandConfig = require("../../utils/BrandConfig.js");
const ParseUtils = require("../../utils/ParseUtils.js");
const Tools = require("../../utils/Tools.js");