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
<?php // src/Acme/Form/Type/ExampleForm.php | |
namespace Acme\Form\Type; | |
use Symfony\Component\Form\AbstractType; | |
use Symfony\Component\Form\FormBuilderInterface; | |
use Symfony\Component\Validator\Constraints as Assert; | |
class ExampleForm extends AbstractType { | |
public function buildForm(FormBuilderInterface $builder, array $options) { | |
$builder->add('email', 'email', array( |
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
<?php # src/Acme/Migrations/Version1.php | |
namespace Acme\Migrations; | |
use Doctrine\DBAL\Migrations\AbstractMigration; | |
use Doctrine\DBAL\Schema\Schema; | |
/** | |
* Class Version1 | |
* | |
* Notice that file and class names MUST be Version*.php |
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
<?php | |
class PregReplaceSlugify | |
{ | |
public $rules = array( | |
'/º|°/' => 0, | |
'/¹/' => 1, | |
'/²/' => 2, | |
'/³/' => 3, | |
'/æ|ǽ|ä/' => 'ae', |
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
INFO global: Vagrant version: 1.6.3 | |
INFO global: Ruby version: 2.0.0 | |
INFO global: RubyGems version: 2.0.14 | |
INFO global: VAGRANT_EXECUTABLE="C:\\HashiCorp\\Vagrant\\embedded\\gems\\gems\\vagrant-1.6.3\\bin\\vagrant" | |
INFO global: VAGRANT_INSTALLER_EMBEDDED_DIR="C:\\HashiCorp\\Vagrant\\embedded" | |
INFO global: VAGRANT_INSTALLER_ENV="1" | |
INFO global: VAGRANT_INSTALLER_VERSION="2" | |
INFO global: VAGRANT_INTERNAL_BUNDLERIZED="1" | |
INFO global: VAGRANT_LOG="debug" | |
INFO global: Plugins: |
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
# Install ttfautohint on Ubuntu 12.04 LTS | |
# @author: Jean Lescure | |
# 2014/04/23 | |
# Clone ttfautohint git repo to 'tmp' dir and cd into resulting repo folder | |
cd /tmp | |
git clone git://repo.or.cz/ttfautohint.git | |
cd ttfautohint | |
# Handle bootstrap's dependency: automake |
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
<?php | |
/* | |
Plugin Name: Custom Post Type With Required Custom Field | |
Plugin URI: http://mac-blog.org.ua/ | |
Description: Sample plugin demonstrating how to add required unique custom field to custom post type | |
Author: Marchenko Alexandr | |
Version: 1.0 | |
Author URI: http://mac-blog.org.ua/ | |
*/ |
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
<# | |
.Synopsis | |
Converts a PowerShell object to a Markdown table. | |
.EXAMPLE | |
$data | ConvertTo-Markdown | |
.EXAMPLE | |
ConvertTo-Markdown($data) | |
#> | |
Function ConvertTo-Markdown { | |
[CmdletBinding()] |
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
# Invoke using following syntax: | |
# http://boxstarter.org/package/url?[raw link to this gist] | |
# Boxstarter options | |
$Boxstarter.PackageName = "powershell4" | |
$Boxstarter.Version = "1.0.0" | |
$Boxstarter.RebootOk=$true # Allow reboots? | |
$Boxstarter.NoPassword=$false # Is this a machine with no login password? | |
$Boxstarter.AutoLogin=$true # Save my password securely and auto-login after a reboot | |
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
Set-ExplorerOptions -showFileExtensions | |
Enable-RemoteDesktop | |
choco install googlechrome -y | |
choco install sublimetext3 -y | |
choco install skype -y | |
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
[ | |
{ | |
"Title": "Chappie", | |
"Year": 2015, | |
"imdbRating": 6.9, | |
"Genre": ["Action", "Crime", "Sci-Fi"] | |
}, | |
{ | |
"Title": "Star Wars: The Force Awakens", | |
"Year": 2015, |
OlderNewer