Skip to content

Instantly share code, notes, and snippets.

View abdobouna's full-sized avatar
🏠
Working from home

Bounasser Abdelwahab abdobouna

🏠
Working from home
View GitHub Profile

Pricing plans design checklist.

  1. Highlight a recommended option,
  2. Allow users to switch currency (€/$/£)
  3. Allow users to switch pricing monthly/yearly
  4. Keep the entire pricing plan area clickable
  5. Use slider to calculate how much a user would save
  6. Provide free first month for good engagement
  7. Prominently highlight testimonials prominently
  8. Repeating call to action on top and bottom
@abdobouna
abdobouna / fb-langs.php
Created September 5, 2016 16:31
A list of facebook-supported language and their locales.
$languages = array(
'af_ZA' => 'Afrikaans',
'ar_AR' => 'Arabic',
'az_AZ' => 'Azerbaijani',
'be_BY' => 'Belarusian',
'bg_BG' => 'Bulgarian',
'bn_IN' => 'Bengali',
'bs_BA' => 'Bosnian',
'ca_ES' => 'Catalan',
'cs_CZ' => 'Czech',
module.exports = function (grunt) {
grunt.loadNpmTasks( 'grunt-sass' );
grunt.loadNpmTasks( 'grunt-autoprefixer' );
grunt.loadNpmTasks( 'grunt-contrib-cssmin' );
grunt.loadNpmTasks( 'grunt-contrib-watch' );
grunt.initConfig({
autoprefixer: {
@abdobouna
abdobouna / scale-font-sizes.scss
Last active January 2, 2016 16:55
A function for scaling font sizes.
// A function for scaling font sizes.
@function scale-font-sizes($font-sizes, $scale: 1) {
// A list for holding scaled font sizes.
$ret: ();
// Populate the list by mulitplying each font size by a $scale
// and append it to the end of the list.
@each $font-size in $font-sizes {
$ret: append($ret, $font-size * $scale);
}
@mixin clearfix {
&:after {
content: " ";
display: table;
clear: both;
}
}
@abdobouna
abdobouna / zeroList.js
Last active August 29, 2015 14:13
Creates a list of zero-filled numbers.
function zeroList( min, max ) {
var maxLen = max.toString().length;
var ret = [];
var zeroCount;
var zeros;
for ( var i = min; i <= max; i++ ) {
zeroCount = maxLen - i.toString().length;
zeros = '';