Coder Social home page Coder Social logo

elizabethsiegle / 30-seconds-of-swift-code Goto Github PK

View Code? Open in Web Editor NEW
527.0 21.0 67.0 394 KB

A Swift implementation of 30-seconds-of-code: A curated collection of useful Swift 4 snippets that you can understand in 30 seconds or less.

Swift 100.00%
awesome-list snippets snippets-collection learning-resources learn-to-code education awesome snippets-library 30-seconds-of-code collection

30-seconds-of-swift-code's Introduction

lizziepika Hi, I'm Lizzie! Welcome to my GitHub πŸ₯°πŸ‘‹πŸ‘©πŸ»β€πŸ’»

tweet

detect images in twilio video app with tensorflow.js twilio lizzie sms celebrity high school conuhacks demo talk

Usually @lizziepika/ @lizziepikachu on the web Β―_(ツ)_/Β― (I like programming, people, and Pikachu.)

Linkedin Badge Stack Overflow Badge Twitter Badge Twitch Badge Instagram Badge Goodreads Badge

Top Langs accelerateSF hackathon demo on the news

πŸ‘©πŸ»β€πŸ”¬Twilio devangelist, Bryn Mawr computer science/🎾/πŸ“ alumna, ex-intern @ Twilio, PubNub, Vea.

πŸ‘©πŸ»β€πŸŽ“πŸŽ“Senior thesis: coded series of Django + iOS apps comparing methods of teaching emotions to people on the Autism spectrum.

πŸŽ™πŸ—£Past speaking, teaching, tutorials.

πŸ“ΉTwitch show Mon/Wed. (chessβ™Ÿβ™› sometimes on other days)

πŸ‘©πŸ»β€πŸ’» : mainly web dev (😍node.js), some Python for ML, and used to do iOS. Interested in APIs, serverless, and dev tools!

πŸ’•πŸƒβ€β™€οΈ,🎾,πŸ“,🏐,πŸš΄πŸ»β€β™€οΈ, gswπŸ€, matcha, Disney, Broadway, yoga, urbanism🏑, public transit🚌

πŸ“… hackathon/event-organizer, community builder

πŸ’Œ monthly newsletter

https://github-readme-stats.vercel.app/api?username=elizabethsiegle

Select projects

caribbean dev conf 2018 speaking

30-seconds-of-swift-code's People

Contributors

abdulajet avatar aekosyakov avatar akoyakov avatar anielskieoczko avatar ashishkakkad8 avatar bntr avatar cool-jeweled-moon avatar dmi-nikhil avatar elizabethsiegle avatar hatosbarbosa avatar heliostrike avatar juliojohn avatar marcjal avatar maxnatchanon avatar mikejgurch avatar nicolascombe5555 avatar recouse avatar soeren-kirchner avatar will-1-am avatar yalishanda42 avatar yugantarjain avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

30-seconds-of-swift-code's Issues

Flip

Flip takes a function as an argument, then makes the first argument the last.

filter_non_unique

Make a function that filters out the non-unique values in a list: make a list that contains only the unique values.

dropRightWhile

Make a function that removes elements from the end of an array until the passed function returns true and returns the remaining elements in the array.

Anagram

Make a function that checks if two strings are anagrams

ex:
anagram("abcd3", "3acdb") //false
anagram("123", "456") //false

Compact

Make a function to remove "falsey" values like False, None, 0, and "".

dropRight

Make a function that returns a new array with n elements removed from the right.

ex:
dropRight(arr: [1, 2, 3]) // [1,2]
dropRight(arr: [1, 2, 3], 2) // [1]
dropRight(arr: [1, 2, 3], 42) // []

Comma separated

Make a function that accepts a list of strings and returns a single string with each element from the input list separated by commas.

array to csv

Make a function that converts a 2D array to a comma-separated values (CSV) string.

snake

Convert a string to snake case

every_nth

Make a function that returns every nth element in a list: use [nth-1::nth] to create a new list that contains every nth element of the given list.

byte size

Make a function that returns the length of a string in bytes.

isSorted

Make a function that returns 1 if the array is sorted in ascending order, -1 if it is sorted in descending order, or 0 if the array is not sorted.

most frequent

Make a function that, given an array, returns the most frequent element that appears in that array.
ex:
mostFrequent(["a", 2, 4, 2, "b", 2, 3, 4, 2]) //2

camel case to snake case

Convert camel case (initial capital is used for the first letter of a word forming the second element of a closed compound, like 'PayPal' or 'iPhone') to snake case (separate words/elements with one underscore character and no spaces, like 'this_is_snake_case'). Overall, like this.

radians_to_degrees

Convert an angle from radians to degrees: multiply the number by 180, then divide the result by Pi.

Flatten

Make a function that flattens a list of lists once.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.