Skip to content

Instantly share code, notes, and snippets.

View dlively1's full-sized avatar

Dan Lively dlively1

View GitHub Profile
@namoscato
namoscato / sequelpro_github_markdown_bundle.php
Last active January 19, 2022 04:49 — forked from jakob-stoeck/Copy as textile
Copies Sequel Pro results as a GitHub and Jira Flavored Markdown table.
#!/usr/bin/php
<?php
$in = fopen('php://stdin', 'r');
$result = array();
$first = true;
while ($line = fgetcsv($in, 0, "\t")) {
$result[] = sprintf('|%s|', implode('|', $line));
public class RestRequestController {
@AuraEnabled
public static Response service(String path, String method, String responseFormat, String bodyContent, String bodyContentType) {
HttpRequest request = buildRequest(path, method, responseFormat, bodyContent, bodyContentType);
HttpResponse httpRes = sendRequest(request);
Response restRes = buildResponse(httpRes);
return restRes;
}
@staltz
staltz / introrx.md
Last active July 15, 2024 15:43
The introduction to Reactive Programming you've been missing
@jessefreeman
jessefreeman / GruntFile.js
Created August 20, 2013 12:52
Sample build script for Super Falling Zombies.
module.exports = function (grunt) {
grunt.loadNpmTasks('grunt-shell');
grunt.loadNpmTasks('grunt-express-server');
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.loadNpmTasks('grunt-contrib-copy');
grunt.loadNpmTasks('grunt-text-replace');
grunt.loadNpmTasks('grunt-contrib-clean');
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.loadNpmTasks('grunt-open');
@JeffreyWay
JeffreyWay / .bash_profile
Created May 8, 2013 18:02
Laravel aliases
# laravel new-app
alias laravel="git clone -o laravel -b develop https://github.com/laravel/laravel.git"
alias artisan="php artisan"
alias migrate="php artisan migrate"
alias serve="php artisan serve"
alias dump="php artisan dump"
alias t="phpunit"
# Generators Package