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
<!-- ./path/to/my.html --> | |
<div> | |
"SmarpShare" | |
<span>is<span> | |
awesome, dud' | |
</div> |
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
// ./path/my-component-name.ts | |
import tpl from './my-component-name.html'; | |
angular | |
.module("myComponentName") | |
.directive("myComponentName", function() { | |
return | |
{ | |
restrict: 'E', | |
template: tpl, | |
controller: myComponentNameCtrl, |
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
gulp.task('ng-template-watch', function () { | |
gulp | |
.src('path/**/*.html') | |
.pipe(through2.obj(function(file, _, cb){ | |
file.path += ".ts"; | |
var prefix = 'var t ='; | |
var suffix = ';\nexport default t;\n'; | |
var newC = prefix + JSON.stringify(file.contents.toString()) + suffix; | |
file.contents = new Buffer(newC); | |
this.push(file); |
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
<!-- ./path/my-component-name.html --> | |
<div> | |
"SmarpShare" | |
<span>is<span> | |
awesome, dud' | |
</div> |
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
before_script: | |
- export GOPATH=$(pwd) | |
stages: | |
- build | |
- test | |
- deploy | |
validate-schema: | |
image: truongsinh/pg-client:9.4 |
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
Thank you for your interest in Smarp (the "Company"). In order to clarify the intellectual property license granted with Contributions from any person or entity, the Company must have a Contributor License Agreement ("CLA") on file that has been signed by each Contributor, indicating agreement to the license terms below. This license is for your protection as a Contributor as well as the protection of the Company and its users; it does not change your rights to use your own Contributions for any other purpose. | |
You accept and agree to the following terms and conditions for Your present and future Contributions submitted to the Company. In return, the Company shall not use Your Contributions in a way that is contrary to the public benefit or inconsistent with its bylaws in effect at the time of the Contribution. Except for the license granted herein to the Company and recipients of software distributed by the Company, You reserve all right, title, and interest in and to Your Contributions. | |
1. Definitions. | |
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
#!/usr/bin/env node | |
const dest = __dirname + "/../packages/"; | |
const { readdir, readFile, writeFile } = require("fs"); | |
const { promisify } = require("util"); | |
const [readDirAsync, writeFileAsync, readFileAsync] = [ | |
promisify(readdir), | |
promisify(writeFile), | |
promisify(readFile) | |
]; |
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
#!/usr/bin/env node | |
const dest = __dirname + "/../packages/"; | |
const { readdir, writeFile, exists, mkdir } = require("fs"); | |
const { promisify } = require("util"); | |
const [readDirAsync, writeFileAsync, existsAsync, mkdirAsync] = [ | |
promisify(readdir), | |
promisify(writeFile), | |
promisify(exists), | |
promisify(mkdir) |
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
#!/usr/bin/env node | |
const dest = __dirname + "/../packages/"; | |
const { readdir, writeFile, exists, mkdir } = require("fs"); | |
const { promisify } = require("util"); | |
const [readDirAsync, writeFileAsync, existsAsync, mkdirAsync] = [ | |
promisify(readdir), | |
promisify(writeFile), | |
promisify(exists), | |
promisify(mkdir) |
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
Dart, | Android | iOS | |
---|---|---|---|
null | null | nil (NSNull when nested) | |
bool | java.lang.Boolean | NSNumber numberWithBool: | |
int | java.lang.Integer | NSNumber numberWithInt: | |
int, if 32 bits not enough | java.lang.Long | NSNumber numberWithLong: | |
double | java.lang.Double | NSNumber numberWithDouble: | |
String | java.lang.String | NSString | |
Uint8List | byte[] | FlutterStandardTypedData typedDataWithBytes: | |
Int32List | int[] | FlutterStandardTypedData typedDataWithInt32: | |
Int64List | long[] | FlutterStandardTypedData typedDataWithInt64: |
OlderNewer