Giter VIP home page Giter VIP logo

swahili's Introduction

Hi there πŸ‘‹

I'm a freelance web designer & full-stack developer. I'm seriously into writing pretty code, crafting exceptional UX, and using accessibility best practices.

Stack:

Node Postgres MongoDb

TypeScript React Angular HTML5 Sass

Where to find me:

Discord Twitch

swahili's People

Contributors

bkmgit avatar dependabot[bot] avatar felixwaweru avatar malcolmkiano avatar mintcollie avatar w3ndo 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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

swahili's Issues

Failure to parse string literals that use unicode quotes

Describe the bug
Could be confusing for beginners; the interperter can't parse unicode quotes for the string literal and doesn't give a very helpful error.
Found this by copying and pasting some code from I believe the docs but can't find it anymore.

To Reproduce
Running andika(β€ŸHili ni neno”)

fails with Illegal Character: 'β€Ÿ'

Expected behavior
The string should be parsed successfully.

Licensing

What license does the project use? How about adding an GLV3+? That would make adding this upstream to say a package manager easy to package imo

Function definition failing for swahili 0.9.6

Describe the bug
Attempts to run any functions are met with Runtime Error: '<function name>' is not defined

To Reproduce
Steps to reproduce the behavior:
Could be my install but any function including the example ones such as examples/99.swh fail to run.

I'm trying to submit this example

/*
   https://leetcode.com/problems/shuffle-the-array/
   Given the array nums consisting of 2n elements in the form [x1, x2, ..., xn, y1, y2, ..., yn].
   Return the array in the form [x1, y1, x2, y2, ..., xn, yn].

   Input: nums = [2,5,1,3,4,7], n = 3
   Output: [2,3,5,4,1,7] 
   Explanation: Since x1=2, x2=5, x3=1, y1=3, y2=4, y3=7 then the answer is [2,3,5,4,1,7].

  Input: nums = [1,2,3,4,4,3,2,1], n = 4
  Output: [1,4,2,3,3,2,4,1]

  Input: nums = [1,1,2,2], n = 2
  Output: [1,2,1,2]
*/

shughuli changanya(orodha_ya_nambari, kati) {
  wacha jibu = []

  kwa y = 1 mpaka kati {
    jibu = jibu + orodha_ya_nambari/y
    jibu = jibu + orodha_ya_nambari/y+kati
  }

  jibu
}

wacha orodha_ya_nambari_0 = [2,5,1,3,4,7]
wacha kati_ya_nambari_0 = 4
wacha jibu_0 = [2,3,5,4,1,7] 

wacha orodha_ya_nambari_1 = [1,2,3,4,4,3,2,1]
wacha kati_ya_nambari_1 = 4
wacha jibu_1 = [1,4,2,3,3,2,4,1]

wacha orodha_ya_nambari_2 = [1,1,2,2]
wacha kati_ya_nambari_2 = 2
wacha jibu_2 = [1,2,1,2]

changanya(orodha_ya_nambari_0, kati_ya_nambari_0) == jibu_0
changanya(orodha_ya_nambari_1, kati_ya_nambari_1) == jibu_1
changanya(orodha_ya_nambari_2, kati_ya_nambari_2) == jibu_2

Expected behavior
I expect the program to accept any valid function provided.

  • OS: macos catalina
  • Version 0.9.6

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.