Skip to content

Instantly share code, notes, and snippets.

View jrmessias's full-sized avatar
:octocat:
[<(BR)>]

Júnior Messias jrmessias

:octocat:
[<(BR)>]
View GitHub Profile
@GAM3RG33K
GAM3RG33K / clickable_text.dart
Created January 22, 2021 05:21
Flutter - Clickable text links
Widget buildClickableTextWithPadding() {
return InkWell(
onTap: () {},
child: Padding(
padding: const EdgeInsets.symmetric(vertical: 8.0),
child: Text.rich(
TextSpan(
children: [
TextSpan(
text: 'Edit',
@GAM3RG33K
GAM3RG33K / floating_widget.dart
Created March 18, 2020 10:40
A Floating Widget in Flutter
import 'package:flutter/material.dart';
/// Enum for selecting floating widget's initial alignment
enum WidgetAlignment {
/// The widget will be positioned of top left corner of the parent
topLeft,
/// The widget will be positioned of top right corner of the parent
topRight,
@gabrielfroes
gabrielfroes / slugify.js
Last active February 6, 2024 23:36 — forked from mathewbyrne/slugify.js
Javascript Slugify
/*
Create SLUG from a string
This function rewrite the string prototype and also
replace latin and other special characters.
Forked by Gabriel Froes - https://gist.github.com/gabrielfroes
Original Author: Mathew Byrne - https://gist.github.com/mathewbyrne/1280286
*/
if (!String.prototype.slugify) {
String.prototype.slugify = function () {
@seyhunak
seyhunak / git-flow.md
Last active May 9, 2022 12:13
Git Flow - Cheatsheet

Git-Flow

Initialize a Repository for git-flow

git flow init -d

(Omit -d if you want to select values other than the defaults.)

Features

@cpruitt
cpruitt / _grid-5-col.scss
Last active September 30, 2022 01:31
Bootstrap Grid Extension for 5 Column Rows
/*
Quick extension to bootstrap grid system to allow for a column
to occupy one fifth of a row (i.e. five columns in a row).
*/
$col-5th-width: 12 / 5; // 1/5 of 12 = 2.4
// SMALL
.col-sm-5th {
@desandro
desandro / bower-logo.md
Last active December 30, 2021 23:11
Bower logo

In addition to awesome docs #228, Bower deserves a proper logo. See below for sketches. I'm curious if you think any of these are worth me putting more effort into.


Take a look at Yeoman right now.

Screen Shot 2013-02-19 at 4 43 10 PM

The other two entities have awesome logos. Bower's got to represent.

@jxson
jxson / README.md
Created February 10, 2012 00:18
README.md template

Synopsis

At the top of the file there should be a short introduction and/ or overview that explains what the project is. This description should match descriptions added for package managers (Gemspec, package.json, etc.)

Code Example

Show what the library does as concisely as possible, developers should be able to figure out how your project solves their problem by looking at the code example. Make sure the API you are showing off is obvious, and that your code is short and concise.

Motivation

alphabet = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789".split("")
base = alphabet.length
exports.encode = (i) ->
return alphabet[0] if i is 0
s = ""
while i > 0
s += alphabet[i % base]
i = parseInt(i / base, 10)