You can post a json file with curl like so:
curl -X POST -H "Content-Type: application/json" -d @FILENAME DESTINATION
so for example:
| { | |
| "name": "Debug TSLint Rule", | |
| "type": "node", | |
| "request": "launch", | |
| "program": "${workspaceRoot}/my-rules/myCustomRule.ts", | |
| "stopOnEntry": false, | |
| "cwd": "${workspaceRoot}", | |
| "runtimeExecutable": null, | |
| "runtimeArgs": [ | |
| "--nolazy" |
| constructor(private elementRef: ElementRef, private ngbPopover: NgbPopover, | |
| private ngZone: NgZone, private cd: ChangeDetectorRef, private renderer: Renderer2) { | |
| } | |
| ngOnInit() { | |
| this.ngZone.runOutsideAngular(() => { | |
| this.listener = this.renderer.listen('document', 'click', (event) => { | |
| this.closePopoverOnClickOutside(event); | |
| }); | |
| }); |
| function onPointerDownHandler (event) { | |
| if (event.pointerType === 'touch') { | |
| // Equivalent to a touchstart on MS Surface | |
| } | |
| } | |
| // For IE 10 | |
| element.addEventListener('MSPointerDown', onPointerDownHandler); | |
| // For IE 11+ |
| {{ car.SpecialOffer ? 'special-offer--' ~ car.specialOffer.type : '' }} |
| $test_array = array( | |
| "person-1" => array( | |
| "name" => "pete", | |
| "lastname" => "rock", | |
| "age" => "20" | |
| ), | |
| "person-2" => array( | |
| "name" => "jay", | |
| "lastname" => "dee", | |
| "age" => "40" |
| {% set admin_panel_visible = (is_granted('manager_cars') or is_granted('manager') or is_granted('ROLE_SEO') or is_granted('ROLE_CONTENT')) %} | |
| <body data-ng-app="front" data-ng-controller="common" {% if admin_panel_visible %}class="has_admin_panel" {% endif %}> |
| <a href="#" class="footer-contacts__callback" data-lead-form {{ goal('new_callback') }} data-layer="{{ hostpath('landing_forms_layer', {'alias' :'new_callback'}) }}">Обратная связь</a> |