SixArm / Sixarm_ruby_magic_number_type
Licence: other
SixArm.com » Ruby » MagicNumberType infers a data type from the data's leading bytes
Stars: ✭ 13
Programming Languages
ruby
36898 projects - #4 most used programming language
Labels
Projects that are alternatives of or similar to Sixarm ruby magic number type
Moab Versioning
Gem to process digital object version content, metadata, and manifests
Stars: ✭ 9 (-30.77%)
Mutual labels: gem
Dip
CLI gives the "native" interaction with applications configured with Docker Compose.
Stars: ✭ 737 (+5569.23%)
Mutual labels: gem
Exception notification Shoryuken
Exception Notifier Plugin for Rails with Shoryuken http://smartinez87.github.com/exception_notification
Stars: ✭ 5 (-61.54%)
Mutual labels: gem
Datagrid
Gem to create tables grids with sortable columns and filters
Stars: ✭ 921 (+6984.62%)
Mutual labels: gem
Coltrane
🎹🎸A music theory library with a command-line interface
Stars: ✭ 625 (+4707.69%)
Mutual labels: gem
Modern Resume Theme
A modern static resume template and theme. Powered by Jekyll and GitHub pages.
Stars: ✭ 868 (+6576.92%)
Mutual labels: gem
Octicons
A scalable set of icons handcrafted with <3 by GitHub
Stars: ✭ 7,039 (+54046.15%)
Mutual labels: gem
Puree
Metadata extraction from the Pure Research Information System.
Stars: ✭ 8 (-38.46%)
Mutual labels: gem
Batch Loader
⚡️ Powerful tool for avoiding N+1 DB or HTTP queries
Stars: ✭ 812 (+6146.15%)
Mutual labels: gem
Mime
Shared MIME-info database in D programming language
Stars: ✭ 7 (-46.15%)
Mutual labels: mime-types
Rainbow
Ruby gem for colorizing printed text on ANSI terminals
Stars: ✭ 683 (+5153.85%)
Mutual labels: gem
Itamae Plugin Resource Encrypted remote file
encrypt secret data (e.g. id_rsa), and forward decrypted file to remote.
Stars: ✭ 10 (-23.08%)
Mutual labels: gem
Green Button Data
Fast Ruby parser and API client for Green Button data
Stars: ✭ 18 (+38.46%)
Mutual labels: gem
Lumberyard Cubism3 Gem
An Amazon Lumberyard Gem that adds in Live2D Cubism3 functionality to LyShine.
Stars: ✭ 13 (+0%)
Mutual labels: gem
Mime Types
The ultimate javascript content-type utility.
Stars: ✭ 865 (+6553.85%)
Mutual labels: mime-types
Adminpanel
This gem has the goal to act as the administration panel for your resources, so you can focus only on the public part of your app
Stars: ✭ 7 (-46.15%)
Mutual labels: gem
MagicNumberType infers mime types from leading bits
SixArm.com → Ruby →
- Git: https://github.com/SixArm/sixarm_ruby_magic_number_type
- Doc: http://sixarm.com/sixarm_ruby_magic_number_type/doc
- Gem: https://rubygems.org/gems/sixarm_ruby_magic_number_type
- Contact: Joel Parker Henderson, [email protected]
- Project: changes, license, contributing.
Introduction
Magic numbers are the first bits of a file or data stream which uniquely identify the type of file or data stream.
For example when the first bits are "BM", this identifies the file as a bitmap image file.
For docs go to http://sixarm.com/sixarm_ruby_magic_number_type/doc
Want to help? We're happy to get pull requests.
Install
Gem
To install this gem in your shell or terminal:
gem install sixarm_ruby_magic_number_type
Gemfile
To add this gem to your Gemfile:
gem 'sixarm_ruby_magic_number_type'
Require
To require the gem in your code:
require 'sixarm_ruby_magic_number_type'
Details
This gem infers based on widespread programming conventions for data file formats.
These magic numbers are by convention and we are using this guide: http://www.astro.keele.ac.uk/oldusers/rno/Computing/File_magic.html
Typical uses of magic numbers:
- to quickly identify a file's data type
- to check if data matches the file's MIME type or extension
- to check if a web form file upload matches its HTTP content type
Compare:
- MIME::Types ruby library
- Unix magic() command for testing files on disk
- http://shared-mime.rubyforge.org/
Contributors
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].