Skip to content

Instantly share code, notes, and snippets.

View nataliachodelski's full-sized avatar

Natalia Chodelski nataliachodelski

View GitHub Profile
{
"applinks": {
"apps": [],
"details": [
{
"appID": “JHGFJHHYX.com.facebook.ios",
"paths": [
"*"
]
}
@lattner
lattner / TaskConcurrencyManifesto.md
Last active June 8, 2024 03:41
Swift Concurrency Manifesto
@plashchynski
plashchynski / merge_dna_files.rb
Last active December 30, 2022 09:20
Tool to merge 23andme and Ancestory.com raw dna files
#!/usr/bin/ruby
#
# Usage:
# ruby ./merge_dna_files.rb file,file1,file2... > merged_file.txt
#
# Example:
# ruby ./merge_dna_files.rb AncestryDNA.txt genome_John_Doe_v4_Full_20170428065226.txt > merged_raw.txt
#
# Supports 23andMe, AncestryDNA, and Genes for Good 23andMe compatible file formats.
# The result will be in 23andMe file format.
@phynet
phynet / map-reduce-filter-flatMap.swift
Created March 19, 2017 16:54
Examples for flatMap, Map, Reduce, Filter in Swift
//reduce
//Use reduce to combine all items in a collection to create a single new value.
let numbers = [1, 3, 5, 7, 9]
//sum all values from the array (+)
let result = numbers.reduce(0, +)
//sum all values from the array (+) plus one
let result2 = numbers.reduce(1, +)
let result3 = numbers.reduce(1, *)
@gazolla
gazolla / HTTP.swift
Last active September 20, 2016 15:51
HTTP encapsulation
//
// HTTP.swift
// TableTest2
//
// Created by Gazolla on 22/05/16.
// Copyright © 2016 Gazolla. All rights reserved.
//
import Foundation
import UIKit
@acegreen
acegreen / Swift 2.0 Error Handling Asynchronous Functions
Last active November 1, 2016 04:34
Swift 2.0 Error Handling Asynchronous Functions
**** Medium Story ****
https://medium.com/ios-os-x-development/logan-wright-i-just-started-dabbling-with-swift-s-error-handling-myself-5e7b3dffdf06#.zbor79r8l
public enum Errors: ErrorType {
case NoInternetConnection
case QueryResponseError
case ErrorQueryingForData
case QueryDataEmpty
public func message() -> String {

Full Stack Pre-Work

Audience: Students who are looking to brush up on the necessary skills needed to succeed in the Hackbright Academy Full-Stack Web Development Course.

Terminal skills

Goal: Be comfortable navigating the command line, including changing directory, moving files, and using command-line utilities such as curl.

Full Stack Entrance Quiz

Audience: Students who haven't completed the Front End Web Development course but have equivalent experience and want to figure out if they are ready for the Full Stack course.

Tasks

  1. Create a HTML page which uses JavaScript (jQuery is fine) to print the numbers from 1 to 100 as elements in an unordered list.
  2. Using CSS, make every other item in the list (eg. all even numbers) have a different background color.
  3. Write a Python program which asks the user for their name and prints out their 'hacker' name. Their hacker name is a randomly capitalized, space-free version of their name, with letters replaced by numbers according to the following scheme:
@jackreichert
jackreichert / getKeyVals
Last active March 19, 2020 07:12
This is a swift extension for NSURL so you can parse the query string and get back a dictionary of the variables.
extension NSURL {
func getKeyVals() -> Dictionary<String, String>? {
var results = [String:String]()
var keyValues = self.query?.componentsSeparatedByString("&")
if keyValues?.count > 0 {
for pair in keyValues! {
let kv = pair.componentsSeparatedByString("=")
if kv.count > 1 {
results.updateValue(kv[1], forKey: kv[0])
}
@urish
urish / ng2-hello-world.md
Last active November 22, 2015 00:33
AngularJS 2.0 Hello World How To
  1. Clone the AngularJS 2.0 source tree:

    git clone https://github.com/angular/angular

  2. inside the project directory, run npm install

  3. inside gulpfile.js, replace the 'build' task (near the end of the file) with the following one:

    gulp.task('build', ['jsRuntime/build', 'modules/build.dev.js']);