Skip to content

Instantly share code, notes, and snippets.

@alipio
alipio / README.md
Created May 31, 2025 01:33 — forked from lopspower/README.md
Hexadecimal color code for transparency

Hexadecimal color code for transparency

Twitter

How to set transparency with hex value ?

For example, you want to set 40% alpha transparence to #000000 (black color), you need to add 66 like this #66000000.

Download This sample on Google Play Store

@alipio
alipio / gist:24b7dd71f0e22ae902ef24e715747efc
Created April 14, 2023 19:53 — forked from ritou/gist:3149557
OpenID Connect Session Management Demo
@alipio
alipio / report.rb
Created January 6, 2023 00:06 — forked from bgreenlee/report.rb
Displays a mysql-style report for an array of ActiveRecord objects. Stick it in your .irbrc.
# mysql-style output for an array of ActiveRecord objects
#
# Usage:
# report(records) # displays report with all fields
# report(records, :field1, :field2, ...) # displays report with given fields
#
# Example:
# >> report(records, :id, :amount, :created_at)
# +------+-----------+--------------------------------+
# | id | amount | created_at |
@alipio
alipio / aprompt.png
Created November 4, 2021 01:39 — forked from mislav/aprompt.png
My zsh prompt. No oh-my-zsh needed
aprompt.png
@alipio
alipio / ANSI.md
Created August 27, 2021 19:43 — forked from fnky/ANSI.md
ANSI Escape Codes

ANSI Escape Sequences

Standard escape codes are prefixed with Escape:

  • Ctrl-Key: ^[
  • Octal: \033
  • Unicode: \u001b
  • Hexadecimal: \x1b
  • Decimal: 27
@alipio
alipio / webstoemp-gulpfile.js
Created June 12, 2021 01:57 — forked from jeromecoupe/webstoemp-gulpfile.js
Gulp 4 sample gulpfile.js. For a full explanation, have a look at https://www.webstoemp.com/blog/switching-to-gulp4/
"use strict";
// Load plugins
const autoprefixer = require("autoprefixer");
const browsersync = require("browser-sync").create();
const cp = require("child_process");
const cssnano = require("cssnano");
const del = require("del");
const eslint = require("gulp-eslint");
const gulp = require("gulp");
@alipio
alipio / increment_decrement.py
Created August 11, 2020 21:15 — forked from dtao/increment_decrement.py
Sublime Text plugin to increment/decrement all selected numbers
import sublime
import sublime_plugin
class NumberCommand(sublime_plugin.TextCommand):
def run(self, edit):
selection = self.view.sel()
for region in selection:
try:
value = int(self.view.substr(region))
self.view.replace(edit, region, str(self.op(value)))
@alipio
alipio / game-of-life.scm
Created March 31, 2020 23:47 — forked from turanct/game-of-life.scm
Super simple Conway's game of life in scheme
(define create-coord
(lambda (x y)
(list x y)))
(define get-x
(lambda (coord)
(car coord)))
(define get-y
(lambda (coord)
// ==UserScript==
// @name EmuParadise download script
// @version 1
// @description Downloads games directly after clicking their name
// @author Eptun
// @require http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js
// @match https://www.emuparadise.me/*/*/*
// @grant none
// ==/UserScript==