Skip to content

Instantly share code, notes, and snippets.

View dimitridarras's full-sized avatar

Dimitri Darras dimitridarras

  • Virginia, United States
  • 22:07 (UTC -12:00)
  • LinkedIn in/ddarras
View GitHub Profile
@chumkui
chumkui / drush12.composer.json
Created October 10, 2023 14:36
Drush 12 composer.json
{
"name": "drupal/recommended-project",
"description": "Project template for Drupal projects with a relocated document root",
"type": "project",
"license": "GPL-2.0-or-later",
"homepage": "https://www.drupal.org/project/drupal",
"support": {
"docs": "https://www.drupal.org/docs/user_guide/en/index.html",
"chat": "https://www.drupal.org/node/314178"
},
@stephenlb
stephenlb / openai-function-calling.js
Last active February 7, 2024 20:27
Using OpenAI's Function Calling with a JavaScript Fetch API.
//
// Import Modules
//
const pubnub = require('pubnub');
const xhr = require('xhr');
const vault = require('vault');
//
// Request Event Handler (Main)
//
@FranklinYu
FranklinYu / README.markdown
Last active June 5, 2025 01:40
links for old versions of Docker for Mac (inspired by docker/for-mac#1120)

links for old versions of Docker for Mac

Deprecated

Docker provides download links in release note. They promised that

(we) will also include download links in release notes for future releases.

Note:

@InFog
InFog / proceduralphp.md
Last active September 14, 2024 19:06
PHP Procedural Framework Manifesto

Procedural PHP Manifesto

We are web site developers (a.k.a. webmasters) and we just want to get stuff done. We don't need Object Orientation and we don't need Design Patters and other boring and not easy to learn and understand stuff to get in our way to get our sites up and running.

And that's why our values are:

  1. Procedural Code over Object Orientation
  • No one actually needs OO to develop web applications
  • Classes with only static functions are ok, since it's just a way to keep functions in one place. And is still procedural
  1. Explicitly load what you need over autoloaders
@Paulmicha
Paulmicha / drush_cs.sh
Last active July 5, 2018 09:17
Drush - usual commands cheatsheet
#!/bin/bash
# -*- coding: UTF8 -*-
##
# Drush usual commands cheat sheet
# Prerequisites : drush installed
#
# Sources:
# http://drushcommands.com/
# http://highrockmedia.com/blog/features-drush-drupal-goodness
// Includes functions for exporting active sheet or all sheets as JSON object (also Python object syntax compatible).
// Tweak the makePrettyJSON_ function to customize what kind of JSON to export.
var FORMAT_ONELINE = 'One-line';
var FORMAT_MULTILINE = 'Multi-line';
var FORMAT_PRETTY = 'Pretty';
var LANGUAGE_JS = 'JavaScript';
var LANGUAGE_PYTHON = 'Python';