This is a place to list the landing pages with the best good conversion ratio.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!doctype html> | |
| <html ng-app="MyApp" > | |
| <head> | |
| <script src="http://cdnjs.cloudflare.com/ajax/libs/angular.js/1.1.1/angular.js"></script> | |
| <script type="text/javascript"> | |
| var app = angular.module('MyApp', []); | |
| app.directive('colorpicker', function($parse) { | |
| // sample color picker directive | |
| // todo : bound to a ng-model |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # creates a fresh new virtualenv and activates it | |
| mkvirtualenv --no-site-packages ProjectName | |
| # add requirements | |
| pip install dotcloud fabric | |
| # backup in requirements file | |
| pip freeze > requirements.txt |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # -*- encoding: UTF-8 -*- | |
| import os | |
| # pip install requests if not installed | |
| import requests | |
| def sketchfab_send(fullpath, title, tags='', description=''): | |
| ''' sends a 3D model to the sketchfab API ''' | |
| url = 'https://api.sketchfab.com/v1/models' | |
| token_api = '123abc' | |
| private = 1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # | |
| # adapted from http://www.burgundywall.com/tech/automatically-activate-virtualenv | |
| # source this in your .bash_profile and you're done | |
| # | |
| # todo: ability to set a different virtualenv name | |
| # | |
| export PREVPWD=`pwd` | |
| export PREVENV_PATH= | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var app = angular.module('app', ['angular-google-analytics']) | |
| .config(function(AnalyticsProvider) { | |
| // initial configuration | |
| AnalyticsProvider.setAccount('UA-XXXXX-xx'); | |
| // track all routes (or not) | |
| AnalyticsProvider.trackPages(true); | |
| })) | |
| .controller('SampleController', function(Analytics) { | |
| // create a new pageview event |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * The first commented line is your dabblet’s title | |
| */ | |
| body, html { | |
| height:100%; | |
| } | |
| .d1 { | |
| top:200px; | |
| width:30%; | |
| height:300px; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * absolute positionned children | |
| */ | |
| .d1 { | |
| top:60px; | |
| width:30%; | |
| height:0; | |
| background:pink; | |
| vertical-align:bottom; | |
| display: inline-block; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| Chrome Packaged app Bluetooth API test | |
| Before interacting with a BT device, you need to : | |
| 1) get the device MAC and service UUID with startDiscovery and getServices methods | |
| 2) request permission with chrome.permissions.request | |
| 3) add the service profile with chrome.bluetooth.addProfile (a profile is only {uuid:'xxxxxxx...'}) | |
| */ | |
| // onConnection callback | |
| chrome.bluetooth.onConnection.addListener( |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 'use strict'; | |
| /** | |
| * @ngdoc function | |
| * @name ng.filter:slice | |
| * @function | |
| * | |
| * @description | |
| * Creates a new array limited to the specified range, and optionnaly extracts only n-th items | |
| * with the `step` argument, similar to Python slice operators. |