- XAMPP for Windows
- Download: https://www.apachefriends.org/de/download.html
- Download Xdebug for PHP 7.0: http://xdebug.org/files/php_xdebug-2.4.0rc3-7.0-vc14.dll
| /*------------------------------------------ | |
| Responsive Grid Media Queries - 1280, 1024, 768, 480 | |
| 1280-1024 - desktop (default grid) | |
| 1024-768 - tablet landscape | |
| 768-480 - tablet | |
| 480-less - phone landscape & smaller | |
| --------------------------------------------*/ | |
| @media all and (min-width: 1024px) and (max-width: 1280px) { } | |
| @media all and (min-width: 768px) and (max-width: 1024px) { } |
| /** | |
| * Example AsyncStorage React Native | |
| * https://github.com/pradeep1991singh | |
| */ | |
| import React, { Component } from 'react'; | |
| import { | |
| AppRegistry, | |
| StyleSheet, | |
| Text, |
| # do it once | |
| seq 1 | parallel -n0 "curl -H 'Content-Type: application/json' http://httpbin.org/post -X POST -d '{\"url\":\"http://google.com/\"}'" | |
| # do it twice | |
| seq 2 | parallel -n0 "curl -H 'Content-Type: application/json' http://httpbin.org/post -X POST -d '{\"url\":\"http://google.com/\"}'" | |
| # do it 4 times, but at 2 a time | |
| seq 4 | parallel -n0 -j2 "curl -H 'Content-Type: application/json' http://httpbin.org/post -X POST -d '{\"url\":\"http://google.com/\"}'" | |
| # you can also put all your commands into a file |
| var https = require('https'); | |
| // CONFIGURATION ####################################################################################################### | |
| var token = 'SLACK TOKEN'; | |
| var channel = 'CHANNEL ID'; | |
| var privateChannel = false; | |
| var delay = 300; // delay between delete operations in millisecond | |
| // GLOBALS ############################################################################################################# |
| <?php | |
| use Doctrine\ORM\Mapping as ORM; | |
| use Doctrine\Common\Collections\ArrayCollection; | |
| /** | |
| * @ORM\Entity() | |
| * @ORM\Table(name="user") | |
| */ | |
| class User |
| const flatten = arr => arr.reduce( | |
| (a, b) => a.concat(Array.isArray(b) ? flatten(b) : b), [] | |
| ); | |
| testArr = [[1,2,[3]],4] | |
| console.log(flatten(testArr)); |
| { | |
| "vars": { | |
| "@gray-base": "#000", | |
| "@gray-darker": "lighten(@gray-base, 13.5%)", | |
| "@gray-dark": "lighten(@gray-base, 20%)", | |
| "@gray": "lighten(@gray-base, 33.5%)", | |
| "@gray-light": "lighten(@gray-base, 46.7%)", | |
| "@gray-lighter": "lighten(@gray-base, 93.5%)", | |
| "@brand-primary": "darken(#428bca, 6.5%)", | |
| "@brand-success": "#5cb85c", |
| 2.2.x | |
| Name : Sam | |
| Serial : eJzzzU/OLi0odswsqglOzK0xsjQzNzI2NjA1q3GuMQQAnJAJjw== | |
| 3.3.x | |
| Username: personal | |
| eJzzzU/OLi0odswsqilILSrOz0vMqbFEAjXONYY1fu6ufgA/CA4X |
The API we are creating in this gist will follow these rules :
password Grant Type only (no need for Authorization pages and such).v1.api.example.com)The API will be written in PHP with the Symfony 2 framework. The following SF2 bundles are used :