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
class Person { | |
public string FirstName { get; set; } | |
public string LastName { get; set; } | |
} |
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
class Person { | |
public string FirstName { get; private set; } | |
public string LastName { get; private set; } | |
public Person(string firstName, string lastName) { | |
ChangeName(firstName, lastName); | |
} | |
public void ChangeName(string firstName, string lastName) { |
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
var gulp = require("gulp"); | |
var minify = require("gulp-minify-css"); | |
gulp.task("css", function () { | |
return gulp.src("./style/style.css") | |
.pipe(minify()) | |
.pipe(dest("./output/style")); | |
}); |
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
var gulp = require("gulp"); | |
var minify = require("gulp-minify-css"); | |
gulp.task("css", function () { | |
return gulp.src("./style/style.css") | |
.pipe(minify()) | |
.pipe(dest("./output/style")) | |
.pipe(dest("./anotherOutput/style)); | |
}); |
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
var name = "Mike"; | |
var age = 77; | |
var concat = "My name is " + name + ", and I am " + age + " years old."; |
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
var name = "Mike"; | |
var age = 77; | |
var concat = String.Format("My name is {0}, and I am {1} years old.", name, age); |
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
var name = "Mike"; | |
var age = 77; | |
var concat = $"My name is {name}, and I am {age} years old."; |
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
var fsModule = require("file-system"); | |
var offline = { | |
_fileName: "offline-data.json", | |
write: function(data) { | |
var file = fsModule.knownFolders.documents().getFile(offline._fileName); | |
return file.writeText(JSON.stringify(data)); | |
}, | |
remove: function() { | |
var file = fsModule.knownFolders.documents().getFile(offline._fileName); | |
return file.remove(); |
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
var offlineModule = require("./modules/offline/offline"); | |
exports.onTapClear = function() { | |
console.log("clearing file"); | |
offlineModule.remove().then(function() { | |
console.log("finished clearing file"); | |
}); | |
}; |
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
var observableArrayModule = require("data/observable-array"); | |
var fsModule = require("file-system"); | |
var offline_view_model = { | |
OfflineViewModel: function(fileName, items) { | |
var viewModel = new observableArrayModule.ObservableArray(items); | |
viewModel._fileName = fileName; | |
viewModel.loadOffline = function() { | |
// clear out current view model |
OlderNewer