Skip to content

Instantly share code, notes, and snippets.

View funkytaco's full-sized avatar

Luis Gonzalez funkytaco

View GitHub Profile
<html>
<head>
<title>Checkbox</title>
<style>
input[type=checkbox] {
display:none;
}
input[type=checkbox] + label
{
@jakebellacera
jakebellacera / ICS.php
Last active April 19, 2024 09:06
A convenient script to generate iCalendar (.ics) files on the fly in PHP.
<?php
/**
* This is free and unencumbered software released into the public domain.
*
* Anyone is free to copy, modify, publish, use, compile, sell, or
* distribute this software, either in source code form or as a compiled
* binary, for any purpose, commercial or non-commercial, and by any
* means.
*
@everzet
everzet / rspec_in.php
Created May 19, 2011 21:13
Why RSpec is not possible in PHP
<?php
/*
Why i think, that "RSpec is not possible in PHP"?
Cuz Ruby's syntax abilities can represent
natural language constructions:
object should equals 2
@canton7
canton7 / gist:1053846
Created June 29, 2011 13:35
git push, tracking, and push.default

git clone path/to/test/repo.git

push.default = matching (the default)

git config push.default matching

git branch -a
   * master
@coolaj86
coolaj86 / how-to-publish-to-npm.md
Last active April 2, 2024 20:18
How to publish packages to NPM

Getting Started with NPM (as a developer)

As easy as 1, 2, 3!

Updated:

  • Aug, 08, 2022 update config docs for npm 8+
  • Jul 27, 2021 add private scopes
  • Jul 22, 2021 add dist tags
  • Jun 20, 2021 update for --access=public
  • Sep 07, 2020 update docs for npm version
@dbernar1
dbernar1 / gist:1569735
Created January 6, 2012 08:38
My Best Gist Yet (a php-rspec proof of concept)
it should blah blah
$someshit = new Shit();
$someshit.shit.should be_new
end
@sadaco
sadaco / gist:1601914
Created January 12, 2012 17:31
Google Code LESS.js
<script src="http://lesscss.googlecode.com/files/less-1.2.0.min.js"></script>
@sadaco
sadaco / gist:1620813
Created January 16, 2012 13:16
Include less.js with your styles:
<link rel="stylesheet/less" type="text/css" href="style.less">
<script src="less-1.2.0.min.js" type="text/javascript"></script>
@saetia
saetia / gist:1623487
Last active May 1, 2024 19:55
Clean Install – OS X 10.11 El Capitan

OS X Preferences


most of these require logout/restart to take effect

# Enable character repeat on keydown
defaults write -g ApplePressAndHoldEnabled -bool false

# Set a shorter Delay until key repeat
@segphault
segphault / videotest2.html
Created January 20, 2012 10:09
HTML5 photo booth
<html>
<head>
<title>HTML5 Photo Booth</title>
</head>
<body>
<h2>HTML5 Photo Booth</h2>
<video id="live" autoplay></video>
<canvas id="snapshot" style="display:none"></canvas>