Guía introductoria a CodeMentor, por Marcos Casagrande (@marcosc90)
¿Que es CodeMentor?
Plataforma para freelancers.
Siempre que se hable de precio en esta guía será en USD
¿Qué lo diferencia de Upwork/Freelancer etc?
{ | |
inputs = { | |
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable"; | |
home-manager = { | |
url = "github:nix-community/home-manager"; | |
inputs.nixpkgs.follows = "nixpkgs"; | |
}; | |
nix-darwin = { |
use bevy::ecs::system::{IntoSystem, System}; | |
use bevy::math::Rect; | |
use bevy::prelude::{ | |
AssetServer, Assets, BuildChildren, ChildBuilder, Color, ImageBundle, NodeBundle, Res, ResMut, | |
TextBundle, VerticalAlign, | |
}; | |
use bevy::sprite::ColorMaterial; | |
use bevy::text::{Text, TextAlignment, TextStyle}; | |
use bevy::ui::{AlignContent, AlignItems, FlexWrap, JustifyContent, PositionType}; | |
use bevy::{ |
module Lang exposing (..) | |
import Dict exposing (Dict) | |
import Type exposing (..) | |
type Lit | |
= IntLit Int | |
| CharLit Char |
module Main where | |
import qualified Data.List as List | |
import System.Environment | |
import System.IO | |
-- | Remove duplicates in sorted (descending order) list | |
dedupe :: [Int] -> [Int] | |
dedupe [] = [] | |
dedupe (x : xs) = reverse $ dedupeX [] x xs |
{ | |
module: { | |
// ... other config | |
// We run this after compiling our elm code, you might have to modify this a bit | |
rules: [ | |
{ | |
test: /elmApp.js$/, | |
exclude: [/elm-stuff/, /node_modules/], | |
loaders: [ |
(function(scope){ | |
'use strict'; | |
function F(arity, fun, wrapper) { | |
wrapper.a = arity; | |
wrapper.f = fun; | |
return wrapper; | |
} | |
function F2(fun) { |
multiply a b = a * b | |
double num = multiply num 2 | |
greet name = | |
if name == "" then | |
"Hello world!" | |
else | |
"Hi " ++ name ++ "!" |
{-# LANGUAGE ScopedTypeVariables, DeriveFunctor, DeriveTraversable, | |
DeriveFoldable #-} | |
import Data.Foldable (traverse_) | |
import qualified Data.IORef as IORef | |
import Data.IORef (IORef) | |
data AST ident | |
= Var ident | |
| Lam ident |
{-# LANGUAGE TypeOperators, GADTs, DataKinds, KindSignatures #-} | |
import Data.Kind (Type) | |
data HList :: [Type] -> Type where | |
Empty :: HList [] | |
HCons :: t -> HList ts -> HList (t ': ts) | |
myTuple2 :: HList '[Int, String] -- Analogous to (Int, String) | |
myTuple2 = HCons 2 (HCons "Hi!" Empty) |
¿Que es CodeMentor?
Plataforma para freelancers.
Siempre que se hable de precio en esta guía será en USD
¿Qué lo diferencia de Upwork/Freelancer etc?