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
[alias] | |
st = status | |
ci = commit | |
br = branch -v | |
co = checkout | |
df = diff | |
lg = log -p | |
up = pull | |
who = shortlog -s -- | |
diff = diff --no-prefix |
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
$> git config --global user.name "Jan Kowalski" |
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
def func1(arg): | |
if not arg: | |
return False | |
result = DB_result() | |
if result: | |
return len(result) | |
return False | |
def func2(arg): | |
if arg: |
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 | |
## Check for versions compiled with ARM at http://nodejs.org/dist/ | |
## Inspired by https://gist.github.com/myrtleTree33/8080843 | |
########################################################################## | |
## Fill in the latest Node Version below: | |
NODE_VERSION="v8.9.4" | |
NODE_DIR="/opt/node-${NODE_VERSION}" | |
NODE_DIR_NAME="node-${NODE_VERSION}" |
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
<script src="https://unpkg.com/vue/dist/vue.js"></script> | |
<div id="exercise"> | |
<!-- 1) Fill the <p> below with your Name and Age - using Interpolation --> | |
<p>VueJS is pretty cool - {{ name }} ({{ age }})</p> | |
<!-- 2) Output your age, multiplied by 3 --> | |
<p>{{ age * 3 }}</p> | |
<!-- 3) Call a function to output a random float between 0 and 1 (Math.random()) --> | |
<p>{{ Math.random() }}</p> | |
<!-- 4) Search any image on Google and output it here by binding the "src" attribute --> |
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
<script src="https://npmcdn.com/vue/dist/vue.js"></script> | |
<div id="exercise"> | |
<!-- 1) Show an alert when the Button gets clicked --> | |
<div> | |
<button @click="showAlert">Show Alert</button> | |
</div> | |
<!-- 2) Listen to the "keydown" event and store the value in a data property (hint: event.target.value gives you the value) --> | |
<div> | |
<input type="text" @keydown="updateValue" /> |
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
// main.js start | |
import Vue from 'vue' | |
import App from './App.vue' | |
new Vue({ | |
el: '#app', | |
render: h => h(App) | |
}) | |
// main.js end |
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
ng new ng5FaB |
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
yarn add font-awesome angular-font-awesome |
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 { AngularFontAwesomeModule } from 'angular-font-awesome'; | |
@NgModule({ | |
//... | |
imports: [ | |
//... | |
AngularFontAwesomeModule | |
], | |
//... |