Skip to content

Instantly share code, notes, and snippets.

View ddelrio1986's full-sized avatar

Daniel Del Rio ddelrio1986

  • eLearning Innovations
  • Seminole, Florida, United States of America
View GitHub Profile
@brianjmiller
brianjmiller / gist:672556
Last active September 24, 2015 05:08
YUI3 Module template
YUI.add(
"!!!",
function(Y, NAME) {
var Clazz = Y.namespace("!!!").!!! = Y.Base.create(
NAME,
!!!,
[],
{
initializer: function (config) {
Y.log("initializer", "debug", Clazz.NAME);
//
// Regular Expression for URL validation
//
// Author: Diego Perini
// Created: 2010/12/05
// Updated: 2018/09/12
// License: MIT
//
// Copyright (c) 2010-2018 Diego Perini (http://www.iport.it)
//
@matthanger
matthanger / blti-launch.php
Last active October 24, 2022 07:12
Sample code for Basic LTI Consumer in PHP
<?php
# ------------------------------
# START CONFIGURATION SECTION
#
$launch_url = "https://lti.tools/test/tp.php";
$key = "12345";
$secret = "secret";
$launch_data = array(
@simme
simme / Install_tmux
Created October 19, 2011 07:55
Install and configure tmux on Mac OS X
# First install tmux
brew install tmux
# For mouse support (for switching panes and windows)
# Only needed if you are using Terminal.app (iTerm has mouse support)
Install http://www.culater.net/software/SIMBL/SIMBL.php
Then install https://bitheap.org/mouseterm/
# More on mouse support http://floriancrouzat.net/2010/07/run-tmux-with-mouse-support-in-mac-os-x-terminal-app/
@paulmillr
paulmillr / active.md
Last active July 15, 2024 10:55
Most active GitHub users (by contributions). http://twitter.com/paulmillr

Most active GitHub users (git.io/top)

The count of contributions (summary of Pull Requests, opened issues and commits) to public repos at GitHub.com from Wed, 21 Sep 2022 till Thu, 21 Sep 2023.

Only first 1000 GitHub users according to the count of followers are taken. This is because of limitations of GitHub search. Sorting algo in pseudocode:

githubUsers
 .filter(user =&gt; user.followers &gt; 1000)
@chrisguitarguy
chrisguitarguy / dbal-nullable.php
Last active July 10, 2019 10:27
Just in case anyone was wondering how set allow a column to be nullable with Doctrine DBAL's Schema later.
<?php
use Doctrine\DBAL\Schema\Schema;
// assuming you're using composer...
$loader = require __DIR__ . '/vendor/autoload.php';
$schema = new Schema();
$users = $schema->createTable('users');
@jareware
jareware / SCSS.md
Last active July 1, 2024 09:25
Advanced SCSS, or, 16 cool things you may not have known your stylesheets could do

⇐ back to the gist-blog at jrw.fi

Advanced SCSS

Or, 16 cool things you may not have known your stylesheets could do. I'd rather have kept it to a nice round number like 10, but they just kept coming. Sorry.

I've been using SCSS/SASS for most of my styling work since 2009, and I'm a huge fan of Compass (by the great @chriseppstein). It really helped many of us through the darkest cross-browser crap. Even though browsers are increasingly playing nice with CSS, another problem has become very topical: managing the complexity in stylesheets as our in-browser apps get larger and larger. SCSS is an indispensable tool for dealing with this.

This isn't an introduction to the language by a long shot; many things probably won't make sense unless you have some SCSS under your belt already. That said, if you're not yet comfy with the basics, check out the aweso

@ralph-tice
ralph-tice / gist:5084164
Created March 4, 2013 18:03
basic release management for php type applications that only involve file copy
#!/bin/bash
#git pull
releaseDir=`date +%F-%H-%M-%S`
sudo mkdir -p /var/www/releases/$releaseDir
sudo chown ec2-user.ec2-user /var/www/releases/$releaseDir
#assumes docroot is the name of the directory in your repo to deploy
cp -r ./docroot /var/www/releases/$releaseDir/
@mikermcneil
mikermcneil / bootstrap-sails-in-memory.js
Last active December 25, 2015 20:38
Programmatic usage of sails (for testing, core testing, scheduled jobs, build scripts, etc.)
// NOTE:
// you may need to grab the latest version of Sails on the v0.10 branch for some of this to work
var sails = require('sails');
// You can do a lot here, but I'll show a few important ones
var options = {
// Completely disable globals (sails, your models, your services, _, async)
globals: false,
@evanscottgray
evanscottgray / docker_kill.sh
Last active November 7, 2023 03:40
kill all docker containers at once...
docker ps | awk {' print $1 '} | tail -n+2 > tmp.txt; for line in $(cat tmp.txt); do docker kill $line; done; rm tmp.txt