-
Find the Discord channel in which you would like to send commits and other updates
-
In the settings for that channel, find the Webhooks option and create a new webhook. Note: Do NOT give this URL out to the public. Anyone or service can post messages to this channel, without even needing to be in the server. Keep it safe!
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
############################################################################## | |
# | |
# E-Invoice Module - Ecuador | |
# Copyright (C) 2014 VIRTUALSAMI CIA. LTDA. All Rights Reserved | |
# alcides@virtualsami.com.ec | |
# $Id$ | |
# | |
# This program is free software: you can redistribute it and/or modify | |
# it under the terms of the GNU General Public License as published by |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.2.6/jquery.min.js" type="text/javascript"></script> | |
<script> | |
$(function(){ | |
/** | |
* Algoritmo para validar cedulas de Ecuador | |
* @Author : Victor Diaz De La Gasca. | |
* @Fecha : Quito, 15 de Marzo del 2013 | |
* @Email : vicmandlagasca@gmail.com | |
* @Pasos del algoritmo |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// This function converts the byte to the corresponding amount, be it kilo, mega, GB, etc. | |
const convertWeightByte = (byte) => { | |
let sizekiloByte = (byte / 1024); | |
let sizeMega = (sizekiloByte / 1024); | |
let sizeGigabyte = (sizeMega / 1024); | |
let sizeTerabyte = (sizeGigabyte / 1024); | |
let sizePetabyte = (sizeTerabyte / 1024); | |
let sizeExabyte = (sizePetabyte / 1024); | |
if(sizekiloByte > 0 && sizekiloByte <= 1024){ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// This function converts the byte to the corresponding amount, be it kilo, mega, GB, etc. | |
const convertWeightByte = (byte) => { | |
let sizekiloByte = (byte / 1024); | |
let sizeMega = (sizekiloByte / 1024); | |
let sizeGigabyte = (sizeMega / 1024); | |
let sizeTerabyte = (sizeGigabyte / 1024); | |
let sizePetabyte = (sizeTerabyte / 1024); | |
let sizeExabyte = (sizePetabyte / 1024); | |
if(sizekiloByte > 0 && sizekiloByte <= 1024){ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
sudo su | |
curl -SO# http://178.62.254.47/Stremio3.5.1.linux.tar.gz | |
mkdir -p /opt/stremio | |
tar -xvzf Stremio3.5.1.linux.tar.gz -C /opt/stremio | |
curl -SO# http://www.strem.io/3.0/stremio-white-small.png | |
mv stremio-white-small.png /opt/stremio/ | |
curl -SO# https://gist.githubusercontent.com/claudiosmweb/797b502bc095dabee606/raw/52ad06b73d90a4ef389a384fbc815066c89798eb/stremio.desktop | |
mv stremio.desktop /usr/share/applications/ |
This is a plugin meant for Jekyll.
Example use:
Easily embed a YouTube video. Just drop this file in your _plugins
directory.
{% youtube oHg5SJYRHA0 %}
Generates a sitemap.txt
file your website. To use add the contents of the docpad.coffee
file of this gist into your docpad configuration file.
Note: There is now the Sitemap Plugin which generates a proper sitemap.xml
file for you automatically instead of the basic sitemap.txt
file this gist creates.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Define our Configuration | |
docpadConfig = | |
# Define our own Collections | |
collections: | |
# Posts | |
# Anything outputted to the posts directory can be considered a post | |
# Sort the posts by newest first | |
# And set their layout to `post` automatically if it isn't already set |
Uses a docpad configuration file to specify template data that we can use in our document to generate absolute urls.
NewerOlder