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 fetch = require('node-fetch'); | |
const t = require('tcomb'); | |
const meetupApiKey = process.env.MEETUP_API_KEY; | |
if (meetupApiKey === undefined) { | |
throw new Error('Must provide MEETUP_API_KEY env variable'); | |
} | |
const Group = t.struct({ | |
id: t.Number, |
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
{ | |
"name": "MUG Montpellier", | |
"status": "active", | |
"city": "Montpellier", | |
"link": "https://www.meetup.com/MUG-Montpellier/", | |
"members": 204 | |
} | |
{ | |
"name": "AFUP Montpellier", | |
"status": "active", |
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 | |
namespace Infrastructure\Composer; | |
use Composer\Installer\InstallationManager; | |
use Composer\Package\CompletePackage; | |
use Composer\Repository\InstalledFilesystemRepository; | |
use Composer\Script\Event; | |
use Composer\Util\Filesystem as ComposerFilesystem; | |
use Symfony\Component\Filesystem\Filesystem; |
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 | |
// composer require justinrainbow/json-schema | |
require __DIR__.'/vendor/autoload.php'; | |
$jsonSchema = json_decode( | |
file_get_contents('https://raw.githubusercontent.com/OAI/OpenAPI-Specification/master/examples/v2.0/json/petstore-simple.json') | |
); |
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 | |
namespace AppBundle\Model; | |
interface UserRepository | |
{ | |
public function add(User $user); | |
public function remove(User $user); |
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 | |
namespace AppBundle\Form; | |
use AppBundle\Model\Username; | |
use Symfony\Component\Form\AbstractType; | |
use Symfony\Component\Form\DataMapperInterface; | |
use Symfony\Component\Form\FormBuilderInterface; | |
use Symfony\Component\Form\FormError; |
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
_type: product | |
category_level0: Books | |
category_level1: Computers & Technology | |
category_level2: Network Programming | |
name: Pro AngularJS | |
--- | |
_type: product | |
category_level0: Books |
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 | |
/* | |
* This file is part of the Symfony package. | |
* | |
* (c) Fabien Potencier <[email protected]> | |
* | |
* For the full copyright and license information, please view the LICENSE | |
* file that was distributed with this source code. | |
*/ |
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
// TinyMCE via jQuery plugin: | |
$('#wysiwyg').tinymce(globalConfigs.wysiwyg); |
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
var globalConfigs = { | |
// ... | |
wysiwyg: { | |
script_url: '/js/tiny_mce/tiny_mce.js', | |
theme: "advanced", | |
element_format : "xhtml", | |
cleanup : true, | |
theme_advanced_buttons1: "<?php echo sfConfig::get('app_tinymce_theme_advanced_buttons1') ?>", | |
theme_advanced_buttons2: "<?php echo sfConfig::get('app_tinymce_theme_advanced_buttons2') ?>", |
NewerOlder