Skip to content

Instantly share code, notes, and snippets.

CustomMsgBox(Title,Message,Font="",FontOptions="",WindowColor="")
{
Gui,66:Destroy
Gui,66:Color,%WindowColor%
Gui,66:Font,%FontOptions%,%Font%
Gui,66:Add,Text,,%Message%
Gui,66:Font
GuiControlGet,Text,66:Pos,Static1
@Pandahisham
Pandahisham / gist:19f52083b3b3553aa2cc
Created October 7, 2015 14:44 — forked from grey-code/gist:7042282
AutoHotkey: Download()
/*
Derived from Wicked - can't locate his thread but found this in the ff thread:
http://www.autohotkey.com/board/topic/97642-urldownloadtofile/#entry614852
*/
Download(url, dest) {
static r
whr := ComObjCreate("WinHttp.WinHttpRequest.5.1")
if (!r || whr.Option(1) != url)
@Pandahisham
Pandahisham / gist:e8d6be910d555a330bd6
Created October 7, 2015 14:44 — forked from jploudre/gist:8065863
Autohotkey ternary
sub := (command1 = "#a") ? "add"
: (command1 = "#b") ? "build"
: (command1 = "#c") ? "change"
: (command1 = "#d") ? "down"
: (command1 = "#e") ? "unten"
: (command1 = "#f") ? "find"
: (command1 = "#i") ? "info"
: (command1 = "#j") ? "join"
: (command1 = "#k") ? "kill"
: (command1 = "#l") ? "locate"
<?php namespace App\Providers;
use Illuminate\Support\ServiceProvider;
use Request;
use View;
use App;
abstract class ApplicationsServiceProvider extends ServiceProvider
{
public function register()

LESS Coding Guidelines

Medium uses a strict subset of LESS for style generation. This subset includes variables and mixins, but nothing else (no nesting, etc.).

Medium's naming conventions are adapted from the work being done in the SUIT CSS framework. Which is to say, it relies on structured class names and meaningful hyphens (i.e., not using hyphens merely to separate words). This is to help work around the current limits of applying CSS to the DOM (i.e., the lack of style encapsulation) and to better communicate the relationships between classes.

Table of contents

@Pandahisham
Pandahisham / Prepros PHP Helper
Created September 25, 2015 14:01 — forked from Web1776/Prepros PHP Helper
Allows automatic refresh when saving PHP files. Requires Prepros to be installed on your system.
<?php //Use with http://alphapixels.com/prepros/ , must be used before any content is output (ie, functions.php)
$lastModified=filemtime(__FILE__);
header("Last-Modified: ".gmdate("D, d M Y H:i:s", $lastModified)." GMT");
?>
@Pandahisham
Pandahisham / index.html
Last active September 18, 2015 16:59 — forked from bunkat/index.html
Swimlane Chart using d3.js
<!--
The MIT License (MIT)
Copyright (c) 2013 [email protected]
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
@Pandahisham
Pandahisham / gist:3d68ff0f8336c31ea20e
Created September 7, 2015 17:10
jekyll next post
{% for category in site.categories %}
{% assign catg_name = category.first %}
{% if catg_name == page.category %}
{% assign catg_posts = category.last %}
{% endif %}
{% endfor %}
{% for post in catg_posts %}
{% if post.title == page.title %}
{% unless forloop.last %}
{% assign next = catg_posts[forloop.index] %}
@Pandahisham
Pandahisham / CalendarHelper.class.php
Last active September 7, 2015 13:17 — forked from pamelafox-coursera/CalendarHelper.class.php
Generate iCal files in PHP
<?php
class CalendarEvent {
/**
*
* The event ID
* @var string
*/
private $uid;