Skip to content

Instantly share code, notes, and snippets.

View kazzkiq's full-sized avatar

Claudio Holanda Jr. kazzkiq

View GitHub Profile
@kazzkiq
kazzkiq / ppc.js
Last active May 12, 2017 16:39
PPC Chat Links Bar
(function (window) {
'use strict';
const TELEGRAM_LINK = 'https://t.me/peercoin';
const ROCKETCHAT_LINK = 'https://peercoin.chat/channel/general/';
const FIRST_SHOWUP_DELAY = 3500;
const STORAGE_KEY = 'PPC-Injector--USER-INTERACTED';
const HTML_ID = `INJECTOR-${Math.floor(Math.random()*1000*1000*1000)}`;
const COLOR_GREEN = '#3cb054';
const COLOR_GREEN_DARK = '#308d43';
@kazzkiq
kazzkiq / instructions.md
Last active September 13, 2018 09:35
Installing Node.js in 5 minutes: The Final Guide

Installing Node in 5 minutes: The Final Guide.

If you have a shitty internet, it may take a little longer.

First, access Node.js website and click the big green "Download" button.

Download finished? Now run the installation. While the installation goes by, grab yourself a coffee or drink some water, then get back at your chair. By now you should have Node.js and NPM (Node's package manager) installed.

Now, lets install n to manage (and update) Node versions in seconds on your machine. How to install it? Simply run:

@import url('https://fonts.googleapis.com/css?family=Lato:300,300i,400,400i');
.mce-content-body {
font-family: 'Lato', sans-serif;
font-size: 15px;
}
.mce-content-body p {
margin: 10px 0
}
// Roda a função apenas após todo o HTML carregar
document.addEventListener('DOMContentLoaded', addMobileLinks);
function addMobileLinks() {
// Elementos que já existem na tela atualmente
var social_links = document.querySelectorAll('#menu-social-links-menu li');
var nav_mobile = document.getElementById('nav-mobile');
var nav_mobile_logo = document.querySelector('#nav-mobile .mobile-title-logo-in-header');
// Clona os links do desktop para replicá-los no mobile
@kazzkiq
kazzkiq / tmce.css
Last active December 10, 2017 10:48
tmce.css
@import url('https://fonts.googleapis.com/css?family=Lato:300,300i,400,400i');
.mce-content-body {
font-family: 'Lato', sans-serif;
font-size: 15px;
}
.mce-content-body * {
word-break: break-all;
}
<App>
<DockPanel>
<Rectangle Dock="Top" Background="#515a6d" Height="50">
<Text Alignment="Center" TextColor="#fff">Scroll Down</Text>
</Rectangle>
<Rectangle Dock="Bottom" Background="#515a6d" Height="50">
<Text Alignment="Center" TextColor="#fff">Scroll Down</Text>
</Rectangle>
<ScrollView Padding="20">
<Text TextWrapping="Wrap">
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@kazzkiq
kazzkiq / resize-images.sh
Created November 16, 2017 20:55
[bash] Resize image and create thumbnail with ImageMagick
INDEX_RESIZE=0
for file in ./*.jpg; do
[ -e "$file" ] || continue
convert $file -resize 1000x1000^ $file
let INDEX_RESIZE=$(expr $INDEX_RESIZE+1)
done
INDEX_THUMBNAIL=0
for file in ./*.jpg; do
[ -e "$file" ] || continue
@kazzkiq
kazzkiq / Link.html
Created June 5, 2018 23:44
Link Svelte Component (which replaces <a>)
struct Endpoints::Bookmarks::Update
include Onyx::HTTP::Endpoint
params do
path do
type id : Int32
end
json require: true do
type id_category : Int32?