Coder Social home page Coder Social logo

elvish-base's Introduction

I code whenever I can, but also the rest of the time.

lol

Welcome in my <hell>heaven</hell>

champii

Vim Open Source Love svg2 Rust Magic Sound Cloud


Languages and Tools:

angularjs aws azure bash bootstrap c chartjs circleci coffeescript cplusplus docker elasticsearch express gcp git go grafana haskell jasmine javascript jekyll kibana kubernetes linux mocha mongodb mysql nginx nodejs postgresql postman pug react redis rust travisci typescript vagrant vuejs webpack


About me:

  • ๐Ÿ”ญ Iโ€™m currently working on Rock, a native language build with Rust

  • ๐ŸŒฑ Iโ€™m currently learning Compiler theory

  • ๐Ÿค Iโ€™m looking for help with Comet, an Isomorphic reactive web framework for Rust

  • ๐Ÿ’ฌ Ask me about Meta prog, Rust, System Programming or anything else :)

  • ๐Ÿ“ซ How to reach me [email protected]


Github profile summary:

Summary


More stats:

ย champii champii

champii

Recent activity:

  1. ๐ŸŽ‰ Merged PR #4 in Champii/Comet
  2. ๐Ÿ’ช Opened PR #4 in Champii/Comet
  3. ๐ŸŽ‰ Merged PR #4 in Champii/Champii
  4. ๐Ÿ’ช Opened PR #4 in Champii/Champii
  5. ๐ŸŽ‰ Merged PR #3 in Champii/Champii

elvish-base's People

Contributors

champii avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

elvish-base's Issues

Fix errors for Elvish 0.17.0

With Elvish 0.17.0 there are numerous compile time errors with the scripts in this repo. The following patch resolves the issues I found.

elvish-base.txt

Note: Github doesn't like files that end with a .diff so hope that is not an issue.

Size and pretty size is OS specific implementation

The current implementation of size only works with the GNU version of stat.

From the man page for GNU's stat

-c --format=FORMAT
    use the specified FORMAT instead of the default; output a newline after each use of FORMAT 
--printf=FORMAT
    like --format, but interpret backslash escapes, and do not output a mandatory trailing newline. If you want a newline, include \n in FORMAT. 

While that works for Linux systems, *BSD and OSX/MacOS use the BSD version of stat which uses a different argument and format

-f	format
	     Display information using the specified format.  See the Formats
	     section for a description of valid	formats.

Comparison
stat --printf %s $filename vs stat -f %z $filename

Don't know if this was intentional or not, but may want to consider wrapping around on OS check.

Fix deprecation warnings from Elvish v0.15.0

Currently under Elvish v0.15.0 this package throws a couple of deprecation warnings, this supplied patch corrects those.

diff --git a/fs.elv b/fs.elv
index ddf4524..f2beac5 100644
--- a/fs.elv
+++ b/fs.elv
@@ -35,7 +35,7 @@ fn exists [filename]{
 }
 
 fn size [filename]{
-  os=(uname -s)
+  set os = (uname -s)
   if (==s $os "Linux") {
     put (stat --printf="%s" $filename)
   } else {
@@ -87,8 +87,8 @@ fn list_gt [s]{
 
 fn File [path]{
   fileObj = [
-    &path=(path-abs $path)
-    &type=(type (path-abs $path))
+    &path=(path:abs $path)
+    &type=(type (path:abs $path))
 
     &cat~={ e:cat $fileObj[path] }
     &size~={ pretty_size $fileObj[path]}

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.