Skip to content

Instantly share code, notes, and snippets.

View abudayah's full-sized avatar
🎯
Focusing

abudayah abudayah

🎯
Focusing
View GitHub Profile
@joshbuchea
joshbuchea / semantic-commit-messages.md
Last active December 9, 2025 18:37
Semantic Commit Messages

Semantic Commit Messages

See how a minor change to your commit message style can make you a better programmer.

Format: <type>(<scope>): <subject>

<scope> is optional

Example

@thomastuts
thomastuts / gulpfile.js
Created February 27, 2015 14:25
Splitting up Gulp tasks in separate files
// gulpfile.js
var gulp = require('gulp');
var requireDir = require('require-dir');
var tasks = requireDir('./tasks');
gulp.task('sass', tasks.sass);
gulp.task('serve:dev', tasks.serve.dev);
gulp.task('serve:dist', tasks.serve.dist);
@abudayah
abudayah / detect foursquare api
Last active December 18, 2015 10:59
Get foursquare venue id by URL.
<?php
$url = 'https://foursquare.com/v/snacks-express/50b46d6ae4b06572462ed863';
$purl = parse_url($url);
$path = explode("/", $purl['path']);
$name = str_replace("-"," ", ucwords($path[2]));
$foursquare_name = $name;
$foursquare_venue_id = $path[3];