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
// check version | |
node -v || node --version | |
// list locally installed versions of node | |
nvm ls | |
// list remove available versions of node | |
nvm ls-remote | |
// install specific version of node |
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
// | |
// PrintLocalesController.m | |
// NSFormatterTest | |
// | |
// Created by Maciek Grzybowski on 02.04.2014. | |
// | |
#import "PrintLocalesController.h" | |
@interface PrintLocalesController () |
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
.ReactTable { | |
position: relative; | |
display: -webkit-box; | |
display: -ms-flexbox; | |
display: flex; | |
-webkit-box-orient: vertical; | |
-webkit-box-direction: normal; | |
-ms-flex-direction: column; | |
flex-direction: column; | |
border: 1px solid rgba(0, 0, 0, 0.1); |
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
Complexity of Python Operations | |
In this lecture we will learn the complexity classes of various operations on | |
Python data types. Then we wil learn how to combine these complexity classes to | |
compute the complexity class of all the code in a function, and therefore the | |
complexity class of the function. This is called "static" analysis, because we | |
do not need to run any code to perform it. | |
------------------------------------------------------------------------------ |
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 java.io.File | |
import java.io.FileInputStream | |
case class Chunk(length: Int, bytes: Array[Byte]) | |
def fileContentStream(fileIn: FileInputStream): Stream[Chunk] = { | |
val bytes = Array.fill[Byte](1024)(0) | |
val length = fileIn.read(bytes) | |
Chunk(length, bytes) #:: fileContentStream(fileIn) | |
} |