Skip to content

Instantly share code, notes, and snippets.

View klashxx's full-sized avatar
💭
I may be slow to respond.

Juan Diego Godoy Robles klashxx

💭
I may be slow to respond.
View GitHub Profile
function formatMins(minutos) {
var mins_num = parseInt(minutos, 10)
if (mins_num == undefined) {
return 'Indeterminado.'
}
if (mins_num < 60 ){
return mins_num + ' minutos.'
}
var horas = Math.floor(mins_num / 60)
var mins = Math.floor((mins_num - ((horas * 3600)) / 60))
package main
import (
"bufio"
"log"
"os"
)
var concurrency = 100
var start = new Date('2017-10-16T11:19:50.846398Z');
setInterval(function() {
$('#Timer').text(Math.floor((new Date - start) / 1000 /60) + " minutes");
}, 1000);
// requires moment.js
var getWeekEndDays = function (year) {
return new Promise(function (resolve, reject) {
if (year === undefined) {
year = moment().year().toString()
}
let weekEndsDays = []
let start = moment(year + '-01-01').startOf('year')
@klashxx
klashxx / Django_ReactJS_Webpack_project_setup.md
Created September 20, 2017 11:07 — forked from Belgabor/Django_ReactJS_Webpack_project_setup.md
Set up a Django + ReactJS project with Webpack manager

Guide on how to create and set up your Django project with webpack, npm and ReactJS :)

Hopefully this will answer "How do I setup or start a Django project?" I was trying to set up my own website, and there was a lot to read, learn and digest! Therefore, I put this together which is a collection of all the guides/blog posts/articles that I found the most useful. At the end of this, you will have your barebones Django app configured and ready to start building :)

NOTE: This guide was built using Django 1.9.5, NodeJS 4+ with NPM 3+

1. Setting up your dev environment

@klashxx
klashxx / .babelrc
Created September 20, 2017 10:31 — forked from JamieMason/.babelrc
Tree-Shaking with Babel 6, Webpack 2, and React.
{
"presets": [
["es2015", {
"es2015": {
"loose": true,
"modules": false
}
}], "react"
]
}
@klashxx
klashxx / license-badges.md
Created August 19, 2017 15:12 — forked from lukas-h/license-badges.md
License Badges for your Project

Markdown License badges

Collection of License badges for your Project's README file.
This list includes the most common open source and open data licenses.
Easily copy and paste the code under the badges into your Markdown files.

Notes

  • Badges are made with Shields.io.
  • This badges do not fully replace the license informations for your projects, they are only emblems for the README, that the user can see the License at first glance.  
  • 🇫🇷 Cette liste en français
@klashxx
klashxx / README.md
Last active December 12, 2019 10:47
Download VS Code extensions as VSIX

How to use?

  • Copy content of vsix-bookmarklet, create a bookmark in your browser.
  • Navigate to the web page of the VS Code extension you want to install.
  • Click the bookmark you just created, then click the download button.
    download
  • After download finished, rename the file extension to *.vsix.
  • In VS Code, select Install from VSIX... in the extension context menu.
    vsc
syntax on
filetype indent plugin on
alias vi="vim -u ~/.vimrc"