Posts

hugoWie

Początki Z Hugo

Wreszcie skusiłem się na hugo zamiast jekylla. Całe to “jest napisany w go” powstrzymywało mnie już wystarczająco długo. Zresztą okazuje się że chocolatey instaluje hugo bez problemu, github pages hostuje zgodnie z (instrukcją)[https://gohugo.io/hosting-and-deployment/hosting-on-github/] szybkim skryptem z gałęzią gh-pages w katalogu /public 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 #!

Ruby - hello world plus

Ruby chciałem wypróbować od kiedy zrobiło się o nim głośno na podcastach TWiT, a potem jeszcze bardziej kiedy przeczytałem Codex. Ale nie było okazji i dopiero dzisiaj wróciłem do tematu. Jak na początek i pierwszy raz - baprawdę szybko poszło. Mój pierwszy w życiu skrypt w Ruby (oparty na dwóch tutorialach) napisałem zanim na dobre zdecydowałem czy lepiej będzie zainstalować Ruby z rbenv czy rvm.

Python: list comprehension

cała lista new_list = [element.method() for element in old_list] wrunkowo z if new_list = [element.method() for element in old_list if element = “chosen”] warunkowo z if/else new_list = [element.method() if element != “exception” else element.exception_method() for element in old_list]

notatki z git

notatki z kursu o git na Courserze Większość materiałów pochodzi z Coursery on setting new email and privacy git init git clone URL git init creates .git/ (git directory) in the current directory, the “working tree” is the current/parent directory that contains .git/ The git directory contains all the changes and their history and the working tree contains the current versions of the files. The git directory acts as a database for all the changes tracked in Git and the working tree acts as a sandbox where we can edit the current versions of the files.

React boilerplates

Komponenty State i Stateless Parent przekazuje stan do Child i renderuje Child. Child renderuje stan otrzymany z Parent Parent 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 # react component import React from 'react' import ReactDOM from 'react-dom' import {Child} from './Child' class Parent extends React.Component { constructor(props) { super(props); this.state = { name: 'Value' }; } render() { return <Child name={this.