Posts
-
geared_pagination
Paginate Active Record sets at variable speeds
Most pagination schemes use a fixed page size. Page 1 returns as many elements as page 2. But that’s frequently not the most sensible way to page through a large recordset when you care about serving the initial request as quickly as possible. This is particularly the case when using the pagination scheme in combination with an infinite scrolling UI.
Geared Pagination allows you to define different ratios. By default, we will return 15 elements on page 1, 30 on page 2, 50 on page 3, and 100 from page 4 and forward. This has proven to be a very sensible set of ratios for much of the Basecamp UIs. But you can of course tweak the ratios, use fewer, or even none at all, if a certain page calls for a fixed-rate scheme.
On JSON actions that set a page, we’ll also automatically set Link and X-Total-Count headers for APIs to be able to page through a recordset.
Tags: #ruby
-
omniauth-google-oauth2
Oauth2 strategy for Google
Strategy to authenticate with Google via OAuth2 in OmniAuth.
Get your API key at: https://code.google.com/apis/console/ Note the Client ID and the Client Secret.
For more details, read the Google docs: https://developers.google.com/accounts/docs/OAuth2
Tags: #ruby • omniauth • google-oauth2
-
jorani
Leave and Overtime Management System
- Official website : https://jorani.org/
- User group : https://groups.google.com/forum/?hl=en#!forum/jorani
Tags: #php • leave-management • planning
-
cast_control
📺 Control Chromecasts from Linux and D-Bus
cast_controlis a daemon utility that allows you to control media playback on casting devices from the Linux desktop.While this service runs, it collects data about the media and apps playing on your casting devices and displays it on your computer.
Tags: #python • linux-desktop • mpris
-
helidon
Java libraries for writing microservices
Project Helidon is a set of Java Libraries for writing microservices. Helidon supports two programming models:
- Helidon MP: MicroProfile 3.3
- Helidon SE: a small, functional style API
In either case your application is just a Java SE program.
Tags: #java • microservice-framework • microprofile
-
react-waterfall
React store built on top of the new context API
React store built on top of the new context API
Tags: #javascript • reactjs • flux
-
devii
A developer blog starter for 2020 (Next.js + React + TypeScript + Markdown + syntax highlighting)
- Works as a Markdown-based static-site generator out of the box: just add new blog posts to
/md/blog - Supports exporting to fully static assets (powered by Next.js)
- Hot reload (powered by Next.js)
- Makes it easy to write custom pages/code in React + TypeScript
- Provides a
Markdown.tsxcomponent with support for GitHub-style syntax highlighting - Automatic RSS feed generation
- SEO best practices (title tag, meta tags, canonical URLs)
Read more about the motivation + design behind Devii at https://colinhacks.com/blog/devii.
<!–
Tags: #typescript • nextjs • nextjs-starter
- Works as a Markdown-based static-site generator out of the box: just add new blog posts to
-
sass-rails
Ruby on Rails stylesheet engine for Sass
This gem provides official integration for Ruby on Rails projects with the Sass stylesheet language.
Tags: #ruby
-
PiracyChecker
An Android library that prevents your app from being pirated / cracked using Google Play Licensing (LVL), APK signature protection and more. API 14+ required.
This library applies some techniques to help protect your app’s users and attempt to thwart reverse engineers and attackers. BUT, this isn’t guaranteed to stop your app from getting pirated. There is no such thing as 100% security, and a determined and skilled attacker with enough time, could remove these checks from the code. The real objective here is to raise the bar out of reach of opportunist and automatic attackers.
Some of the techniques included in this library can be found here.
Tags: #java • apk • signature
-
FabricView
A new canvas drawing library for Android. Aims to be the Fabric.js for Android. Supports text, images, and hand/stylus drawing input. The library has a website and API docs, check it out
A new canvas drawing library for Android. The library was born as part of a project in SD Hacks (www.sdhacks.io) on October 3rd. It is currently under construction and will be refactored and polished in the coming weeks! Stay tuned.
Why? From Doodling on the screen and unleashing the user’s creativity to capturing his signature for authentication purposes… The limit is your imagination.
Tags: #java
subscribe via RSS