I have moved this over to the Tech Interview Cheat Sheet Repo and has been expanded and even has code challenges you can run and practice against!
\
This file contains hidden or 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
| // Fuatavnizer v0.1 | |
| function fuatavni(s, t){var m=Math,y;y=[s.join("\n")+"\nAnaliz."].concat(t.split(/[\.\,]\s*/).filter(function(c){return!!c}).map(function(c,i){i++;var x=m.floor(m.random()*10)%3;return x==1?i+". Adetullahtandır, "+c+".":(x==2?i+". "+c+". Korkma, titre.":i+". "+c)}));y.push((y.length+1)+". Güzel insanlar, duanızı bekliyorum.");return y;} | |
| // Usage: | |
| fuatavni(["Lorem ipsum?", "dolor sit?"], "Lorem ipsum dolor sit amet, \ | |
| consectetur, sed do eiusmod tempor incididunt ut labore et dolore \ | |
| magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation \ | |
| ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute \ | |
| irure dolor in reprehenderit in voluptate velit esse cillum dolore \ | |
| eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non \ |
This file contains hidden or 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
| module RuntimeTypes where | |
| open import Function | |
| open import Data.Unit | |
| open import Data.Bool | |
| open import Data.Integer | |
| open import Data.String as String | |
| open import Data.Maybe hiding (All) | |
| open import Data.List | |
| open import Data.List.All |
This file contains hidden or 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
| #!/bin/bash | |
| JSCSS=$'/* Copyright (C) 2014 Wesleyan University | |
| * | |
| * Licensed under the Apache License, Version 2.0 (the "License"); | |
| * you may not use this file except in compliance with the License. | |
| * You may obtain a copy of the License at | |
| * | |
| * http://www.apache.org/licenses/LICENSE-2.0 | |
| * |
This file contains hidden or 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 Data.Map (Map) | |
| import qualified Data.Map as Map | |
| import Data.Foldable | |
| isAnagram :: [Char] -> [Char] -> Bool | |
| isAnagram xs ys = f xs ys Map.empty | |
| where | |
| f :: [Char] -> [Char] -> Map Char Int -> Bool | |
| f (x:xs) ys m = if x `Map.member` m |
This file contains hidden or 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
| module Printf | |
| %default total | |
| data Format = FInt Format -- %d | |
| | FString Format -- %s | |
| | FOther Char Format -- [a-zA-Z0-9] | |
| | FEnd -- | |
| format : List Char -> Format |
This file contains hidden or 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
| // Wrap closure that will be evaluated only the first time force()/value is called. | |
| // Subsequent calls will return the already-calculated value. | |
| class Lazy<T> { | |
| init(_ closure: () -> T) { | |
| self.force = { [unowned self] in | |
| let v = closure() | |
| self.force = { return v } | |
| return v | |
| } | |
| } |
This file contains hidden or 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
| This is my short-ish tutorial on how to implement closures in | |
| a simple functional language: Foo. | |
| First, some boilerplate. | |
| > {-# LANGUAGE DeriveFunctor, TypeFamilies #-} | |
| > import Control.Applicative | |
| > import Control.Monad.Gen | |
| > import Control.Monad.Writer | |
| > import Data.Functor.Foldable |
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
This file contains hidden or 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
| RADİKAL | |
| ===================================== | |
| HABER LİSTELEME ve DETAYLANDIRMA | |
| -------------------------------- | |
| * Tüm rastgele cihaz id'ler yerine 1 yazılabilir | |
| // Sayfa 1 den başlıyor | |
| GET -> http://native.radikal.com.tr/native/dailynews/{sayfa}/{rastgele-cihaz-id} |