This is a curated list of iOS (Swift & ObjC) frameworks which are inspired by React and Elm.
- ReactSwift by @ColinEberhardt
- https://github.com/ColinEberhardt/ReactSwift
Еднаш среде градинка една, покрај стари другари седнат, | |
дури в градинкава темна со ладното водев спор, | |
така напашкан тонев в скука, само чекав да ме спука, | |
зачув некој имал мука со ганџава надвор. | |
“Некој почетник – реков – има мука” | |
Тоа сал и ниту збор. | |
Ах, си спомнам, многу јасно: в декемвриска вечер касна, | |
жарта од џоклата што згасна и го напуни мојот дроб. | |
Жедно благото го пекав; од дилерот штуро чекав |
-- Drawing the map as isometric tiles | |
self.tilesHovered = {} -- Reset the tilesHovered table every frame | |
for i = 1, #self.map do -- Loop trough rows | |
for j = 1, #self.map[i] do -- Loop through cols in the rows | |
if self.map[i][j] ~= 0 then -- If there is a tile to draw | |
local x = | |
self.x + -- Starting point | |
(j * ((self.tileWidth / 2) * self.scale)) - -- The width on rows | |
(i * ((self.tileWidth / 2) * self.scale)) -- The width on cols |
/* | |
Copy this into the console of any web page that is interactive and doesn't | |
do hard reloads. You will hear your DOM changes as different pitches of | |
audio. | |
I have found this interesting for debugging, but also fun to hear web pages | |
render like UIs do in movies. | |
*/ | |
const audioCtx = new (window.AudioContext || window.webkitAudioContext)() |
-- [[ Cheatsheet for LUA from http://www.newthinktank.com/2015/06/learn-lua-one-video/]] | |
-- Prints to the screen (Can end with semicolon) | |
print("Hello World") | |
--[[ | |
Multiline comment | |
]] | |
-- Variable names can't start with a number, but can contain letters, numbers |
This is a curated list of iOS (Swift & ObjC) frameworks which are inspired by React and Elm.
Should be work with 0.18
Destructuring(or pattern matching) is a way used to extract data from a data structure(tuple, list, record) that mirros the construction. Compare to other languages, Elm support much less destructuring but let's see what it got !
myTuple = ("A", "B", "C")
myNestedTuple = ("A", "B", "C", ("X", "Y", "Z"))
# Phoenix Framework - A productive web framework that does not compromise speed and maintainability | |
[Unit] | |
Description=Phoenix Framework ISControl Application | |
After=network.target | |
[Service] | |
Type=simple | |
User=deployer | |
RemainAfterExit=yes |
import System.Directory | |
import Control.Monad (filterM, mapM, liftM) | |
import System.FilePath ((</>)) | |
getDirsRec :: FilePath -> IO [FilePath] | |
getDirsRec d = do | |
dirContents <- getDirectoryContents d | |
let dirContents' = [ d </> x | x <- dirContents, x /= ".", x /= ".." ] | |
dirs' <- mapM dirRec dirContents' | |
return (concat dirs' ++ [d]) |
------------------------------------ | |
-- Author: Nikola Minoski - June 2014 | |
-- Done in competition with Kex | |
-- Competition: Swift vs Lua | |
------------------------------------ | |
if #arg < 2 then | |
print "Usange: count_src_lines.lua <path_to_project_src_dir> <src_code_ext1> [<src_code_ext2 [...]]" | |
os.exit() | |
end |
// Developer/Library/Frameworks/SenTestingKit.framework/Headers/SenTestCaseRun.h | |
SENTEST_EXPORT NSString * const SenTestCaseDidStartNotification; | |
SENTEST_EXPORT NSString * const SenTestCaseDidStopNotification; | |
SENTEST_EXPORT NSString * const SenTestCaseDidFailNotification; | |
// Developer/Library/Frameworks/SenTestingKit.framework/Headers/SenTestDistributedNotifier.h | |
SENTEST_EXPORT NSString * const SenTestNotificationIdentifierKey; | |
// Developer/Library/Frameworks/SenTestingKit.framework/Headers/SenTestSuiteRun.h | |
SENTEST_EXPORT NSString * const SenTestSuiteDidStartNotification; |