Skip to content

Instantly share code, notes, and snippets.

View minimaldesign's full-sized avatar

Yann minimaldesign

View GitHub Profile
@minimaldesign
minimaldesign / anki-card-for-coding.css
Created June 22, 2020 03:43
Styling for Anki deck on coding
.card {
font-family: "Source Sans Pro", -apple-system, Segoe UI, Roboto, Noto Sans, Ubuntu, Cantarell, Helvetica Neue, sans-serif;
font-size: 16px;
color: #333;
background-color: #fff;
}
.text {
line-height: 1.4em;
}
@minimaldesign
minimaldesign / orientation-change.js
Last active December 27, 2015 16:29
Detect orientation change
<script>
function onOrientationChange()
{
switch(window.orientation)
{
case -90:
case 90:
alert('landscape');
break;
default:
a[href^="tel"] {
text-decoration: none;
color: #333;
pointer-events: none;
}
@media only screen and (max-device-width: 480px) {
a[href^="tel"] {
text-decoration: underline;
color: #00f;
// $mq-mobile-portrait : 320px !default;
// $mq-mobile-landscape : 480px !default;
// $mq-tablet-portrait : 640px !default; -- changed because i want my blog content is around this wide, not 768. you should let content & design determine your breakpoints
// $mq-tablet-landscape : 1024px !default;
// $mq-desktop : 1382px !default;
$mq-mobile-portrait : 20em !default;
$mq-mobile-landscape : 30em !default;
$mq-tablet-portrait : 40em !default;
$mq-tablet-landscape : 64em !default;
@minimaldesign
minimaldesign / ST2 Shortcuts.textile
Created November 18, 2012 14:45 — forked from lucasfais/gist:1207002
Sublime Text 2 - Useful Shortcuts

Sublime Text 2 – Useful Shortcuts (Mac OS X)

General

⌘T go to file
⌘⌃P go to project
⌘R go to methods
⌃G go to line
⌘KB toggle side bar
⌘⇧P command prompt
@minimaldesign
minimaldesign / us_states.php
Created October 31, 2011 22:30
php: US States Array
<?php
$state_array = array(
''=> 'Select&hellip;',
'AL'=>"Alabama",
'AK'=>"Alaska",
'AZ'=>"Arizona",
'AR'=>"Arkansas",
'CA'=>"California",
'CO'=>"Colorado",
'CT'=>"Connecticut",
@minimaldesign
minimaldesign / gist:1271461
Created October 7, 2011 22:11
htaccess for Expression Engine on goddady
RewriteEngine On
RewriteCond %{HTTP_HOST} ^www\.(.+)$ [NC]
RewriteRule ^(.*)$ http://%1/$1 [R=301,L]
RewriteCond $1 !\.(gif|jpe?g|png)$ [NC]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /index.php?/$1 [L]
@minimaldesign
minimaldesign / remove SVN folders recursively
Created July 17, 2009 03:35
remove SVN folders recursively
find . -type d -name '.svn' -exec rm -rf {} \;