Skip to content

Instantly share code, notes, and snippets.

View gloriaconcepto's full-sized avatar

gloriaconcepto gloriaconcepto

View GitHub Profile
@gloriaconcepto
gloriaconcepto / read-a-file-using-stream.scala
Created February 26, 2017 08:57 — forked from mumoshu/read-a-file-using-stream.scala
Read a file using Stream (Scala)
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)
}
@gloriaconcepto
gloriaconcepto / complexitypython.txt
Created August 16, 2018 11:17 — forked from Gr1N/complexitypython.txt
Complexity of Python Operations
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.
------------------------------------------------------------------------------
.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);
@gloriaconcepto
gloriaconcepto / PrintLocalesController.m
Created August 9, 2023 15:36 — forked from ncreated/PrintLocalesController.m
List of iOS locales with currency formatting.
//
// PrintLocalesController.m
// NSFormatterTest
//
// Created by Maciek Grzybowski on 02.04.2014.
//
#import "PrintLocalesController.h"
@interface PrintLocalesController ()
@gloriaconcepto
gloriaconcepto / nvmCommands.js
Created September 25, 2023 12:10 — forked from chranderson/nvmCommands.js
Useful NVM commands
// 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