As easy as 1, 2, 3!
Updated:
- Aug, 08, 2022 update
config
docs for npm 8+ - Jul 27, 2021 add private scopes
- Jul 22, 2021 add dist tags
- Jun 20, 2021 update for
--access=public
- Sep 07, 2020 update docs for
npm version
config.json | |
reading-image.png |
/** | |
* Setup Module with `highlight` filter | |
*/ | |
var JekyllApp = angular.module('JekyllApp', [], function ($routeProvider, $locationProvider) { | |
$locationProvider.html5Mode(false); | |
}); | |
JekyllApp.filter('highlight', function () { | |
return function (text, filter) { |
#!/bin/bash | |
# | |
# This script configures WordPress file permissions based on recommendations | |
# from http://codex.wordpress.org/Hardening_WordPress#File_permissions | |
# | |
# Author: Michael Conigliaro <mike [at] conigliaro [dot] org> | |
# | |
WP_OWNER=www-data # <-- wordpress owner | |
WP_GROUP=www-data # <-- wordpress group | |
WP_ROOT=$1 # <-- wordpress root directory |
⇐ back to the gist-blog at jrw.fi
Or, 16 cool things you may not have known your stylesheets could do. I'd rather have kept it to a nice round number like 10, but they just kept coming. Sorry.
I've been using SCSS/SASS for most of my styling work since 2009, and I'm a huge fan of Compass (by the great @chriseppstein). It really helped many of us through the darkest cross-browser crap. Even though browsers are increasingly playing nice with CSS, another problem has become very topical: managing the complexity in stylesheets as our in-browser apps get larger and larger. SCSS is an indispensable tool for dealing with this.
This isn't an introduction to the language by a long shot; many things probably won't make sense unless you have some SCSS under your belt already. That said, if you're not yet comfy with the basics, check out the aweso
Table of Contents
function contar() { | |
var checkboxes = document.getElementById("test").checkbox; // Array de checkboxes | |
var cont = 0; // Checkboxes marcados, por defecto empieza la cuenta en 0 | |
for (var i = 0; i < checkboxes.length; i++) { | |
if (checkboxes[i].checked) { | |
cont = cont++; | |
} | |
} | |
var porcen = (cont/checkboxes.length) * 100; // Porcentaje de checboxes marcados |
cordova plugin add https://github.com/brodysoft/Cordova-SQLitePlugin.git |
This is a tutorial that describes how to set up a private git (github) server for a smallish development team.
#!/usr/bin/env python3 | |
# -*- coding: utf-8 -*- | |
import random | |
line = round(random.random() * 100 - 2) | |
facts = [] | |
with open("quotes.txt", "r") as f: |