This file contains 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
$countries = [ | |
["code"=> "GB", "name"=> "United Kingdom"], | |
["code"=> "AF", "name"=> "Afghanistan"], | |
["code"=> "AX", "name"=> "Aland Islands"], | |
["code"=> "AL", "name"=> "Albania"], | |
["code"=> "DZ", "name"=> "Algeria"], | |
["code"=> "AS", "name"=> "American Samoa"], | |
["code"=> "AD", "name"=> "Andorra"], | |
["code"=> "AO", "name"=> "Angola"], | |
["code"=> "AI", "name"=> "Anguilla"], |
This file contains 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 Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
This file contains 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
== | |
Visual Studio | |
http://stackoverflow.com/questions/8264323/how-to-compile-a-visual-studio-c-sharp-project-with-mono | |
apt-get install mono-complete | |
and run from the command line : | |
xbuild mysolution.sln | |
xbuild myproject.csproj |
This file contains 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
const webpack = require('webpack'); | |
const path = require('path'); | |
const ExtractTextPlugin = require('extract-text-webpack-plugin'); | |
const HtmlWebpackPlugin = require('html-webpack-plugin'); | |
This file contains 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
A curated list of awesome PHP frameworks, libraries and software. | |
* [laravel/laravel](https://github.com/laravel/laravel) - A PHP Framework For Web Artisans | |
* [symfony/symfony](https://github.com/symfony/symfony) - The Symfony PHP framework | |
* [bcit-ci/CodeIgniter](https://github.com/bcit-ci/CodeIgniter) - Open Source PHP Framework (originally from EllisLab) | |
* [domnikl/DesignPatternsPHP](https://github.com/domnikl/DesignPatternsPHP) - sample code for several design patterns in PHP | |
* [fzaninotto/Faker](https://github.com/fzaninotto/Faker) - Faker is a PHP library that generates fake data for you | |
* [yiisoft/yii2](https://github.com/yiisoft/yii2) - Yii 2: The Fast, Secure and Professional PHP Framework | |
* [composer/composer](https://github.com/composer/composer) - Dependency Manager for PHP |
This file contains 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
from bs4 import BeautifulSoup | |
import re | |
import requests | |
#Extract the info from the article | |
def article(url): | |
if ('.html' in url): | |
r = requests.get(url, verify=False) |
This file contains 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
<?php | |
use Omnipay\Omnipay; | |
function processInput($data) { | |
$data = trim($data); | |
$data = stripslashes($data); | |
$data = htmlspecialchars($data); | |
return strval($data); | |
} |
This file contains 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
// start the node server by doing: `node insta_login_check.js` | |
const puppeteer = require('puppeteer'); | |
const delay = require('delay'); | |
const user = { | |
username: '[email protected]', | |
password: 'passw0rd', | |
}; |
This file contains 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
APP_DEBUG=true | |
APP_URL=http://example.local | |
APP_KEY= | |
DB_CONNECTION=mysql | |
DB_HOST=localhost | |
DB_PORT=3306 | |
DB_DATABASE=website-oc-example-LOCAL | |
DB_USERNAME=homestead | |
DB_PASSWORD=secret |
This file contains 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
SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0; | |
SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0; | |
SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='TRADITIONAL'; | |
CREATE SCHEMA IF NOT EXISTS `survey_001_models_from_tables` DEFAULT CHARACTER SET latin1 COLLATE latin1_swedish_ci ; | |
USE `survey_001_models_from_tables` ; | |
-- ----------------------------------------------------- | |
-- Table `survey_001_models_from_tables`.`organizations` | |
-- ----------------------------------------------------- |
OlderNewer