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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8" /> | |
<title>My App</title> | |
<script src="https://apis.google.com/js/client:platform.js?onload=startup" async defer></script> | |
</head> | |
<body> | |
<p id="app"></p> |
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": "foo", | |
"version": "1.0.0", | |
"description": "", | |
"main": "index.js", | |
"scripts": { | |
"test": "jest" | |
}, | |
"author": "", | |
"license": "ISC", |
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
$ cd ~/Projects | |
$ mvn -DarchetypeGroupId=org.codehaus.mojo.archetypes \ | |
-DarchetypeArtifactId=netbeans-platform-app-archetype \ | |
-DarchetypeVersion=1.12 \ | |
archetype:generate | |
... | |
Define value for property 'groupId': com.example | |
Define value for property 'artifactId': app | |
Define value for property 'version': 1.0-SNAPSHOT | |
Define value for property 'package': com.example.app |
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
$ cd /home/tibco/projects/FooProject | |
$ ls | |
.svn AESchemas defaultVars .folder vcrepo.dat | |
$ svn propset svn:externals 'LibCommon http://svnhost/projects/LibCommon/tags/1.0/LibCommon' . | |
property 'svn:externals' set on '.' | |
$ svn commit -m "Added dependency on LibCommon version 1.0" | |
... | |
$ svn up | |
Fetching external item into 'LibCommon' | |
A LibCommon/... |
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
#import <Foundation/Foundation.h> | |
NSUInteger scannerWordCount(NSString* string) | |
{ | |
NSScanner* scanner = [NSScanner scannerWithString:string]; | |
NSCharacterSet* ws = [NSCharacterSet whitespaceAndNewlineCharacterSet]; | |
NSUInteger words = 0; | |
while ([scanner scanUpToCharactersFromSet:ws intoString:nil]) | |
++words; | |
return words; |