The checklist:
- A readme following a good template
- A contributing.md with a code of conduct.
- A license
- Travis configuration
- A way for people to raise issues
- Link to it
(function () { | |
'use strict'; | |
angular.module('myApp') | |
.controller('SomeCtrl', SomeCtrl); | |
SomeCtrl.$inject = ['$scope', '$http', ' alertService']; | |
function SomeCtrl($scope, $http, alertService) { | |
$http.put('http://some.url/user/44', { |
#!/usr/bin/env | |
# curl https://gist.github.com/mattes/7041760/raw/wp-cli-install-with-brew.sh | bash | |
brew tap homebrew/dupes | |
brew tap josegonzalez/homebrew-php | |
brew install wp-cli |
<?php | |
include('simple_html_dom.php'); | |
$propuestasPopularesAsamblea = new propuestasPopularesAsamblea(); | |
$propuestasPopularesAsamblea->index(); |
import urllib2 | |
import json | |
import re | |
class SoccerwayTeamMatches: | |
def __init__(self, teamId): | |
self.teamId = str(teamId) | |
self.data = {'all': [], 'home': [], 'away': []} |
<?php | |
/** | |
* Kirki Sass Compiler | |
* | |
* Create a CSS file based on a SCSS-file and Kirki variables | |
* File gets saved in the public folder with a cache buster. | |
*/ | |
namespace App\Kirki; | |
use ScssPhp\ScssPhp\Compiler; |
@import "modular-scale"; | |
@import "functions"; | |
$base-font-size: 16px; | |
$base-line-height: 24px; | |
$rhythm-unit: "rem"; | |
// Setup vertical rhythm | |
@include establish-baseline; |
// Determine if an element is in the visible viewport | |
export default function isInViewport(element) { | |
var rect = element.getBoundingClientRect(); | |
var html = document.documentElement; | |
return ( | |
rect.top >= 0 && | |
rect.left >= 0 && | |
rect.bottom <= (window.innerHeight || html.clientHeight) && | |
rect.right <= (window.innerWidth || html.clientWidth) | |
); |
/** | |
* The MIT License (MIT) | |
* | |
* Copyright (c) 2013 Thom Seddon | |
* Copyright (c) 2010 Google | |
* | |
* Permission is hereby granted, free of charge, to any person obtaining a copy | |
* of this software and associated documentation files (the "Software"), to deal | |
* in the Software without restriction, including without limitation the rights | |
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |
import { Fragment } from "@wordpress/element"; | |
import { InnerBlocks } from "@wordpress/editor"; | |
/** | |
* Changes the edit function of an ACF-block to allow InnerBlocks | |
* Should be called like this on `editor.BlockEdit` hook: | |
* ` addFilter("editor.BlockEdit", "namespace/block", editWithInnerBlocks("acf/block-name"));` | |
* | |
* @param {string} blockName the name of the block to wrap | |
* @param {object} innerBlockParams params to be passed to the InnerBlocks component (like allowedChildren) |