- 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
| 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 ############################################################################################################# |
| import requests | |
| import sqlite3 as lite | |
| import xml.etree.ElementTree as ET | |
| r = requests.get("https://s130-es.ogame.gameforge.com/api/highscore.xml?category=1&type=0") | |
| score = r.content | |
| root = ET.fromstring(score) | |
| all_data = [] | |
| timestamp = root.attrib['timestamp'] |
| <?php | |
| namespace AppBundle\Entity; | |
| use Doctrine\Common\Collections\ArrayCollection; | |
| use Doctrine\ORM\Mapping as ORM; | |
| /** | |
| * Person | |
| * | |
| * @ORM\Table(name="person") | |
| * @ORM\Entity(repositoryClass="AppBundle\Repository\PersonRepository") | |
| */ |
| {% for ticket in unique_seat_list %} | |
| {% if (loop.index + 3) is divisible by(4) %} | |
| <tr> | |
| {% endif %} | |
| <td>{{ ticket }}</td> | |
| {% if ticket is divisible by(2) and ticket is not divisible by(4) %} <td class="pasillo"> --- </td> {% endif %} | |
| {% if ticket is divisible by(4) %}</tr>{% endif %} | |
| {% endfor %} |
| galaxy_number = "{}%".format(i) | |
| cur.execute("""SELECT Universe.coords | |
| FROM | |
| Player, | |
| Universe | |
| WHERE | |
| Universe.player = Player.id | |
| AND Universe.coords LIKE ? | |
| AND ( | |
| Player.status LIKE '%i' |
| <?php | |
| use Doctrine\ORM\Mapping as ORM; | |
| use Doctrine\Common\Collections\ArrayCollection; | |
| /** | |
| * @ORM\Entity() | |
| * @ORM\Table(name="user") | |
| */ | |
| class User |
| <!DOCTYPE html> | |
| <!--[if IE 8]><html class="lt-ie10 lt-ie9"> <![endif]--> | |
| <!--[if IE 9]><html class="lt-ie10"> <![endif]--> | |
| <!--[if gt IE 9]><!--> <html> <!--<![endif]--> | |
| <head> | |
| {MobileAppHeaders} | |
| <meta charset="utf-8"> | |
| <title>{Title}{block:SearchPage} ({lang:Search results for SearchQuery}){/block:SearchPage}{block:PermalinkPage}{block:PostSummary} — {PostSummary}{/block:PostSummary}{/block:PermalinkPage}</title> | |
| {block:Description} | |
| <meta name="description" content="{MetaDescription}"> |
| const flatten = arr => arr.reduce( | |
| (a, b) => a.concat(Array.isArray(b) ? flatten(b) : b), [] | |
| ); | |
| testArr = [[1,2,[3]],4] | |
| console.log(flatten(testArr)); |
| git filter-branch --env-filter -f \ | |
| 'if [ $GIT_COMMIT = 00c60df755154c1e5652c5ae00c91d53a2260d14 ] | |
| then | |
| export GIT_AUTHOR_DATE="Sun Jan 29 22:38:53 2017 -0800" | |
| export GIT_COMMITTER_DATE="Sun Jan 29 22:38:53 2017 -0800" | |
| fi' |