Crystal
Crystal is a programming language with friendly syntax, static type checking and modern stdlib. It compiles into efficient, easy-to-distribute native code.
Here are 1,348 public repositories matching this topic...
It wasn't clear to me from this guide:
How to set an arbitrary http response status code like "500" maybe it could be improved upon? Thanks!
-
Updated
May 27, 2020 - Crystal
Description
Specs are failing in Travis for creating a Redirector using from_controller_action. These tests passed on my local MacBook Pro.
https://github.com/amberframework/amber/blob/master/spec/amber/controller/redirect_spec.cr#L51
Look into fixing them.
According to the HTTP/2 spec, all headers should be lowercase.
Currently crystal handles checking against lowercase vs uppercase, and dashes vs underscores, so CONTENT_TYPE is the same as content-type. We could safely lowercase, and dasherize for convention any place that we mention a header key directly.
This also makes me curiou
I've found that a clean install of Fedora 30 is pretty lacking when it comes to building the project. I'm using this issue to document all of the packages I need to install as I work towards a build. Going forward it may make sense to create a nix or guix configuration, or perhaps split the custom components into their own repositories with clear documentation.
Packages:
llvm-devel
pcre-devel
@OvermindDL1 says "I think all the tests should be adjusted to take the integer on the program parameters or an environment variable or something. That would both prevent such optimizations and would allow for easily CI'd consistency checks."
-
Updated
Feb 10, 2018 - Crystal
Can we get an exaple for the logger class? I could create one, but I'm not sure about the .format= option (Thats why I'm here, anyway)
Currently out of the box build fails on some systems (e.g. latest Slackware Linux).
From what I gather [1] the readline library might not be explicitly linked to one providing termcap capabilities, so it needs to be explicitly given to the linker. On Slackware either --link-flags "-lncurses" or --link-flags "-ltermcap" works.
Not sure though if automatic detection, settling for one of
Hosted documentation
References to #108
BTW, glad this repo is alive!
Travis CI offers Github Pages deployments, and it's very neat. I personally use it for my projects. Check the example .travis.yml:
language: crystal
script: crystal docs
deploy:
provider: pages
skip_cleanup: true
github_token: $GITHUB_TOKEN
on:
branch: m-
Updated
Apr 8, 2020 - Crystal
I wanted to check if this is intended or not. I'm happy to try and put together a pull request if you'd like this implemented.
At the moment validate_required returns true so long as the field exists in the changeset. This differs from Elixir Ecto's implementation which from their docs says:
If the value of a field is nil or a string made only of whitespace, the changeset is marked as inv
Neovim has job control feature and it enables to run commands asynchronously easily. (In Vim, it requires a trick.)
Running spec and implementation tools improves coding Crystal.
Unless I've missed something, right now it doesn't seem possible to get an overview of all supported rules and their default settings. This makes it difficult to discover rules that are disabled by default, and to decide ahead of time what kind of code style you want to enforce. For example, even if you're in the habit of running ameba --all, you might not realize LineLength exists.
How oth
-
Updated
May 24, 2020 - Crystal
Hi @crystal-lang-tools/scry community!
This project is getting better everyday. I think is cool but some newcomers are getting confused on how to use scry. This is mainly because the lack of documentation on LSP clients configuration:
I propose to write some wiki articles about configuring scry to run on:
-
Updated
May 23, 2020 - Crystal
In the CI guide, there are currently guides for Travis CI and Circle CI. I use GitHub actions a lot, so it would be really helpful to have a guide for it as well.
I recently wrote a simple guide for using actions for the Lucky framework here:
luckyframework/website#283, and I'm happy to write som
Add a --verbose option to output more information on the searching, ripping and encoding process of mp3s. It'd be nice to see a --logging option where we could specify log-level such as info, debug. --verbose could also be set to log-level debug while info messages are copied to standard output and to a log file...all configured in the config file of course.
-
Updated
Apr 29, 2020 - Crystal
-
Updated
Oct 20, 2019 - Crystal
Psuedo Arrays
Hi, at my organization (@ulayer) we are interested in the ability for Granite to have a sort of Psuedo Arrays to avoid needing to write complex custom setter and getter methods.
Context: Our users want to be able to share their Virtual Machines with trusted contacts. To accomplish that we currently have a String field that looks like @allowed_clients = "1,2,5,6,8," and so forth. Our model for
-
Updated
Feb 5, 2020 - Swift
-
Updated
Jan 2, 2020 - Crystal
Example Code:
alias ItemTuple = {Int64, Int32, String, Int16, Int8, Int8, Int8, Int16, Int16, Float64, Float64, Int8, Int16}
db.query_all "select #{ItemQuery} from rpg_user_items where rpg_character_id = ? and user_id = ? and in_stash = 0", client.selected_characterid, client.user_id, as: ItemTuple
Result:
MySql::ResultSet#read returned a Int64. A Tuple(Int64, Int32,
-
Updated
Mar 23, 2020 - Crystal
ALTER TABLE ADD COLUMN and add NOT NULL column without DEFAULT value is illegal in PostgreSQL:
https://stackoverflow.com/questions/3492947/insert-a-not-null-column-to-an-existing-table
Correct behavior should be default NULL instead.
Created by Ary Borenszweig, Juan Wajnerman
Released June 2011
- Organization
- crystal-lang
- Website
- crystal-lang.org
- Wikipedia
- Wikipedia
Some developers likes dark theme - more gentle on the eyes when codding at night😄
The CSS media prefers-color-scheme can be used for auto-detection o the light/dark theme user preference