Skip to content

Instantly share code, notes, and snippets.

Avatar
⌨️
Looking for new challenges

Michał Staśkiewicz mikoscz

⌨️
Looking for new challenges
View GitHub Profile
View EmberJS_imports_VS_code_snippets.json
{
"Ember": {
"prefix": ["E:Ember"],
"body": ["import Ember from \"ember\""],
"description": "Ember's Ember"
},
"Application": {
"prefix": ["E:Application"],
"body": ["import Application from \"@ember/application\""],
"description": "Ember's Application"
View config.cfg
unbindall
bind "0" "slot10"
bind "1" "slot1"
bind "2" "slot2"
bind "3" "slot3"
bind "4" "slot4"
bind "5" "slot5"
bind "6" "slot6"
bind "7" "slot7"
bind "8" "slot8"
View autoexec.cfg
cl_crosshairalpha "200"
cl_crosshaircolor "5"
cl_crosshaircolor_b "255"
cl_crosshaircolor_r "255"
cl_crosshaircolor_g "255"
cl_crosshairdot "0"
cl_crosshairgap "0"
cl_crosshairsize "5"
cl_crosshairstyle "4"
cl_crosshairusealpha "1"
@mikoscz
mikoscz / elixir_with_asdf_mac.md
Last active Apr 1, 2019
Install elixir with asdf-vm mac os
View elixir_with_asdf_mac.md
  1. brew install asdf
echo -e '\n. $(brew --prefix asdf)/asdf.sh' >> ~/.zshrc
echo -e '\n. $(brew --prefix asdf)/etc/bash_completion.d/asdf.bash' >> ~/.zshrc
brew install \
  coreutils automake autoconf openssl \
View config.cfg
unbindall
bind "0" "slot10"
bind "1" "slot1"
bind "2" "slot2"
bind "3" "slot3"
bind "4" "slot4"
bind "5" "slot5"
bind "6" "slot6"
bind "7" "slot7"
bind "8" "slot8"
View Od zera do JavaScript developera - exercises
1. Write a JavaScript function to get all prime numbers from 0 to a 250;
2. Write a JavaScript program to find the area of a triangle where lengths of the three of its sides are a, b, c - where abc are configurable variables.
3. Write a JavaScript code that prints triangle based on 'size' variable. Size represents the last line of triangle.
#
### - triangle with size 5
#####
@mikoscz
mikoscz / recipes.js
Created Oct 21, 2017
Ember - recipes stored in localStorage
View recipes.js
import Service from '@ember/service';
import { computed } from '@ember/object';
export default Service.extend({
init() {
this._super(...arguments);
if (!localStorage.getItem('recipes')) {
localStorage.setItem('recipes', '[]');
}