Author: Chris Lattner
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
{ | |
"applinks": { | |
"apps": [], | |
"details": [ | |
{ | |
"appID": “JHGFJHHYX.com.facebook.ios", | |
"paths": [ | |
"*" | |
] | |
} |
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
#!/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. |
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
//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, *) |
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
// | |
// HTTP.swift | |
// TableTest2 | |
// | |
// Created by Gazolla on 22/05/16. | |
// Copyright © 2016 Gazolla. All rights reserved. | |
// | |
import Foundation | |
import UIKit |
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
**** 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 { |
Audience: Students who are looking to brush up on the necessary skills needed to succeed in the Hackbright Academy Full-Stack Web Development Course.
Goal: Be comfortable navigating the command line, including changing directory, moving files, and using command-line utilities such as curl
.
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.
- Create a HTML page which uses JavaScript (jQuery is fine) to print the numbers from 1 to 100 as elements in an unordered list.
- Using CSS, make every other item in the list (eg. all even numbers) have a different background color.
- 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:
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
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]) | |
} |
-
Clone the AngularJS 2.0 source tree:
git clone https://github.com/angular/angular
-
inside the project directory, run
npm install
-
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']);
NewerOlder