
Security News
Astral Launches pyx: A Python-Native Package Registry
Astral unveils pyx, a Python-native package registry in beta, designed to speed installs, enhance security, and integrate deeply with uv.
A simple gem to display cookies consent !
Simple Cookies is distributed as a gem, which is how it should be used in your app.
Include the gem in your Gemfile:
gem 'simple_cookies'
Install assets file in application.js:
//= require simple_cookies
And in application.css:
*= require simple-cookies
Or, if you have application.scss:
@import "simple-cookies";
In your view add
<%= render 'simple_cookies/consent', appname: "App name", path: nil, klass: 'top' %>
Simple Cookies comes with some customization. Here are css class :
full : make simple-cookies box full width of browser. Default is 375px.
top || bottom : position the box at the top or bottom of the window.
content-centered : center content inside the box. Default content is left align.
You can customize the box by overriding css.
"Simple cookies" contains 4 elements :
div#simple-cookies
h1
p
a.simple-cookies-accept
FAQs
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Astral unveils pyx, a Python-native package registry in beta, designed to speed installs, enhance security, and integrate deeply with uv.
Security News
The Latio podcast explores how static and runtime reachability help teams prioritize exploitable vulnerabilities and streamline AppSec workflows.
Security News
The latest Opengrep releases add Apex scanning, precision rule tuning, and performance gains for open source static code analysis.