Skip to content

Instantly share code, notes, and snippets.

View clawfire's full-sized avatar
🐻
Being cool

Thibault Milan clawfire

🐻
Being cool
View GitHub Profile

Credit Cards

mastercard = "^5[1-5][0-9]{14}$"
visaCredit = "^4[0-9]{12}(?:[0-9]{3})?$"
amex = "^3[47][0-9]{13}$"
Diners = "^3(?:0[0-5]|[68][0-9])[0-9]{11}$"
Discover = "^6(?:011|5[0-9]{2})[0-9]{12}$"
JCB = "^(?:2131|1800|35\d{3})\d{11}$"

@clawfire
clawfire / SassMeister-input-HTML.html
Created June 18, 2014 12:48
Generated by SassMeister.com.
<ol>
<li></li>
<li></li>
<li></li>
</ol>
@clawfire
clawfire / style.css
Created July 4, 2014 15:57
µClearfix
/**
* For modern browsers
* 1. The space content is one way to avoid an Opera bug when the
* contenteditable attribute is included anywhere else in the document.
* Otherwise it causes space to appear at the top and bottom of elements
* that are clearfixed.
* 2. The use of `table` rather than `block` is only necessary if using
* `:before` to contain the top-margins of child elements.
*/
.cf:before,
@clawfire
clawfire / _breakpoint.scss
Last active August 29, 2015 14:04
breakpoint mixin
@mixin breakpoint($point) {
$media-mobile-max: 767px !default;
$media-desktop-min: 768px !default;
@if $point == mobile {
@media screen and (max-width: #{$media-mobile-max}) { @content; }
}
@else if $point == desktop {
@media screen and (min-width: #{$media-desktop-min}) { @content; }
@clawfire
clawfire / SassMeister-input.scss
Created August 13, 2014 13:04
Generated by SassMeister.com.
// ----
// Sass (v3.4.0.rc.3)
// Compass (v1.0.0.rc.1)
// ----
$size-text : 12rem;
$nombre : 12;
$famille : 'Roboto, Arial, serif';
$famille-alt : 'Roboto', 'Arial', 'serif';
@clawfire
clawfire / gist:ed948f9ad1799523813f
Created October 10, 2014 22:10
Yahoo weather sample data
{
"query": {
"count": 1,
"created": "2014-10-10T22:08:28Z",
"lang": "fr-fr",
"results": {
"channel": {
"title": "Yahoo! Weather - Luxembourg, LU",
"link": "http://us.rd.yahoo.com/dailynews/rss/weather/Luxembourg__LU/*http://weather.yahoo.com/forecast/LUXX0004_f.html",
"description": "Yahoo! Weather for Luxembourg, LU",
@clawfire
clawfire / .editorconfig
Created November 13, 2014 14:38
Let's make working together more easy, download EditorConfig plugin for your IDE here http://editorconfig.org
# EditorConfig is awesome: http://EditorConfig.org
# Unix-style newlines with a newline ending every file
[*]
end_of_line = lf
insert_final_newline = true
indent_style = space
indent_size = 4
charset = "utf-8"
trim_trailing_whitespace = true

Keybase proof

I hereby claim:

  • I am clawfire on github.
  • I am thibault (https://keybase.io/thibault) on keybase.
  • I have a public key whose fingerprint is E089 0014 2F0E E6D0 18E2 7D1B C315 BF56 AB98 FAC4

To claim this, I am signing this object:

@clawfire
clawfire / gist:876836122fc2ea4745a0
Created June 3, 2015 09:16
widget aperoPHP Luxembourg
<div style="width:100%; text-align:left;" >
<iframe src="//eventbrite.fr/tickets-external?eid=17225744666&ref=etckt" frameborder="0" height="214" width="100%" vspace="0" hspace="0" marginheight="5" marginwidth="5" scrolling="auto" allowtransparency="true"></iframe>
<div style="font-family:Helvetica, Arial; font-size:10px; padding:5px 0 5px; margin:2px; width:100%; text-align:left;" >
<a class="powered-by-eb" style="color: #dddddd; text-decoration: none;" target="_blank" href="http://www.eventbrite.fr/r/etckt">Développé par Eventbrite</a>
</div>
</div>
@clawfire
clawfire / gist:f9a572824ea82beca9df
Created September 15, 2014 12:54
Add repository for SVN 1.7.x on Debian Wheezy and install it
wget -q -O - http://opensource.wandisco.com/wandisco-debian.gpg | sudo apt-key add -
sudo echo "deb http://opensource.wandisco.com/debian/ wheezy svn17" > /etc/apt/sources.list.d/wandisco-subversion.list
sudo apt-get update
sudo apt-get install subversion subversion-tools