Always use singlequote if you do not need a template string.
<?php
// this will be compiled 'as is'
$thisIsALiteralString = 'Such Doge!';
?>
/* | |
Use this with co-mocha (https://www.npmjs.com/package/co-mocha) | |
and transform-async-to-generator (https://www.npmjs.com/package/babel-plugin-transform-async-to-generator) | |
for testing purposes. | |
Example: | |
import SomeComponent from './SomeComponent' | |
import mount from './mount' | |
describe('SomeComponent', () => { | |
let component |
import UIKit | |
import Foundation | |
class TriangeView: UIView { | |
init(frame: CGRect, backgroundColor: UIColor) { | |
super.init(frame: frame) | |
self.backgroundColor = backgroundColor | |
} | |
required init?(coder aDecoder: NSCoder) { |
<?php | |
namespace app; | |
use const app\config\SOME_STUFF; | |
class SomeClass | |
{ | |
public function __construct() | |
{ |
'use strict'; | |
class EnumList { | |
constructor(enums) { | |
Object | |
.getOwnPropertyNames(enums) | |
.map(property => Object.defineProperty(this, property, { | |
enumerable: false, | |
configurable: false, | |
writable: false, |