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
pages: | |
script: | |
- mkdir public | |
- cp -a templates/* public/ | |
artifacts: | |
paths: | |
- public |
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: | |
- echo "@SCOPE:registry=https://gitlab.com/api/v4/packages/npm/" > ~/.npmrc | |
- echo "//gitlab.com/api/v4/packages/npm/:_authToken=${CI_JOB_TOKEN}" >> ~/.npmrc | |
- echo "//gitlab.com/api/v4/projects/:_authToken=${CI_JOB_TOKEN}" >> ~/.npmrc |
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
image: node:16 | |
variables: | |
SCOPE: MY-SCOPE | |
stages: | |
- build | |
- test | |
- publish |
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": "@my-gitlab-username/my-project-name", | |
"version": "0.1.0", | |
"scripts": { | |
"build": "rm -rf dist && tsc" | |
}, | |
"main": "./dist/index.js", | |
"types": "./dist/index.d.ts", | |
"devDependencies": { | |
"typescript": "^4.3.5" |
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
package { | |
public class Test { | |
public function Test() { | |
trace('Working!'); | |
} | |
} | |
} |
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
let process = { | |
step() { | |
// Do some stuff. | |
// ... | |
setTimeout(this.step.bind(this), 1000); | |
} | |
}; | |
process.step(); |
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
Brad is fat |
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
public function contains(relationship:ItemRelationship):Boolean { | |
var ids:Vector.<int> = new <int>[]; | |
for each (var item:Item in relationship.items) { | |
ids.push(item.id); | |
} | |
return find(ids) !== null; | |
} |
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
function userEntry(callback) { | |
callback && callback(prompt("Please enter your name here.")); | |
} | |
userEntry(function(name) { | |
firstUserEntry = name; | |
console.log(firstUserEntry); | |
}); |
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
for each (var a:Asteroid in asteroids) | |
{ | |
for each (var b:Asteroid in asteroids) | |
{ | |
if (a !== b && a.hitTestObject(b)) | |
{ | |
// Handle collision. | |
// ... | |
} | |
} |
NewerOlder