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
// npm install browserify -g | |
// npm install tsd -g | |
// npm install react tsify | |
// tsd install react | |
// browserify app.tsx -p [tsify --jsx=react] -o bundle.js | |
/// <reference path="typings/react/react.d.ts" /> | |
import React = require("react"); | |
interface HelloWorldComponentProps extends React.Props<any> { |
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
#!/bin/bash | |
#Found at http://askubuntu.com/a/193065/35729 | |
#don't forget to 'chmod +x <thisFile>' | |
sudo add-apt-repository ppa:motumedia/mplayer-daily | |
sudo add-apt-repository ppa:videolan/stable-daily | |
sudo apt-get update | |
sudo apt-get upgrade |
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
Use folowing steps to repackage dep package: | |
1: Extract deb package | |
# dpkg-deb -x <package.deb> <dir> | |
2: Extract control-information from a package | |
# dpkg-deb -e <package.deb> <dir/DEBIAN> | |
3. After completed to make changes to the package, repack the deb | |
# dpkg-deb -b <dir> <new-package.deb> |
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
var spawn = require('child_process').spawn; | |
var sh = spawn('sh'); | |
sh.stdout.on('data', function (data) { | |
console.log('sh: \n', data.toString()); | |
}); | |
sh.stderr.on('data', function (data) { | |
console.error('error: \n', data.toString()); |
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
{ | |
"version": "0.2.0", | |
"configurations": [ | |
{ | |
"type": "node", | |
"name": "vue-cli-service-tests", | |
"request": "launch", | |
"env": { | |
"NODE_ENV": "test" | |
}, |