Install the OpenSSL on Debian based systems
sudo apt-get install openssl| """ | |
| Json Schema to Django Model | |
| """ | |
| import json | |
| import argparse | |
| import logging | |
| import os | |
| def determine_model_name(model_id=None, filename=None): |
| #!/usr/bin/env python3 | |
| import os | |
| import requests | |
| import itertools | |
| from dateutil.parser import parse | |
| API_KEY = '' | |
| API_SECRET = '' |
| <?php | |
| namespace Zalas\Infrastructure\Scraper; | |
| use OldSound\RabbitMqBundle\RabbitMq\Consumer; | |
| use OldSound\RabbitMqBundle\RabbitMq\ConsumerInterface; | |
| use OldSound\RabbitMqBundle\RabbitMq\ProducerInterface; | |
| use PhpAmqpLib\Connection\AbstractConnection; | |
| use PhpAmqpLib\Connection\AMQPLazyConnection; | |
| use PhpAmqpLib\Exception\AMQPTimeoutException; |
| var reducePath = function (x, y, entryOffset, rangeOffset, entryRequiredWall, entryDisallowedWall) { | |
| var rangeEntryRequiredDirections = [entryDisallowedWall, OppositeDirections[entryDisallowedWall]]; | |
| var rangeEntryDisallowedDirections = [entryRequiredWall, OppositeDirections[entryRequiredWall]]; | |
| var endDisallowedDirections = [OppositeDirections[entryRequiredWall], OppositeDirections[entryDisallowedWall]]; | |
| var endRequiredDirections = [entryRequiredWall, entryDisallowedWall]; | |
| var tile = tiles[x][y]; | |
| var color = tile.color; | |
| var entry = tiles[x+entryOffset[0]][y+entryOffset[1]]; |
| # OSX for Hackers (Mavericks/Yosemite) | |
| # | |
| # Source: https://gist.github.com/brandonb927/3195465 | |
| #!/bin/sh | |
| # Some things taken from here | |
| # https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
| # Ask for the administrator password upfront |
First, install the following libraries:
$ brew install unixodbc
$ brew install freetds --with-unixodbc
FreeTDS should already work now, without configuration:
$ tsql -S [IP or hostname] -U [username] -P [password]
locale is "en_US.UTF-8"
locale charset is "UTF-8"
| --- Stubs for entity.* callbacks defined in C++. | |
| -- | |
| -- DO NOT INCLUDE this file in your scripts, it is for documentation purposes only. | |
| -- | |
| -- Entity callbacks query and mutate the specific entity that is running the | |
| -- lua script. They can be called from a _different_ entity using | |
| -- world.callScriptedEntity(targetEntityId, "entity.*"), replacing "*" with the | |
| -- name of a function defined below. | |
| -- | |
| -- Specific types of entities (e.g. NPCs, Objects) define different sets of |
Press minus + shift + s and return to chop/fold long lines!