Skip to content

Instantly share code, notes, and snippets.

View filipgorczynski's full-sized avatar
🚀
Pursue Focus

Filip Górczyński filipgorczynski

🚀
Pursue Focus
View GitHub Profile
@filipgorczynski
filipgorczynski / .gitconfig
Last active September 18, 2015 08:12
git aliases
[alias]
st = status
ci = commit
br = branch -v
co = checkout
df = diff
lg = log -p
up = pull
who = shortlog -s --
diff = diff --no-prefix
@filipgorczynski
filipgorczynski / git-config-user-name.sh
Last active June 18, 2016 14:39
git set user name
$> git config --global user.name "Jan Kowalski"
def func1(arg):
if not arg:
return False
result = DB_result()
if result:
return len(result)
return False
def func2(arg):
if arg:
#!/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}"
<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 -->
<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" />
// main.js start
import Vue from 'vue'
import App from './App.vue'
new Vue({
el: '#app',
render: h => h(App)
})
// main.js end
@filipgorczynski
filipgorczynski / ng5FaB.start.sh
Last active February 3, 2018 10:58
Create empty Angular 5 project
ng new ng5FaB
@filipgorczynski
filipgorczynski / ng5FaB.font-awesome.sh
Last active February 3, 2018 10:59
Install Font Awesome dependencies
yarn add font-awesome angular-font-awesome
@filipgorczynski
filipgorczynski / ng5FaB.configure.js
Last active February 7, 2018 08:30
Configure Angular Font Awesome Module
//...
import { AngularFontAwesomeModule } from 'angular-font-awesome';
@NgModule({
//...
imports: [
//...
AngularFontAwesomeModule
],
//...