Skip to content

Instantly share code, notes, and snippets.

@ChezRD
ChezRD / func.php
Last active October 10, 2015 11:16
Prepare delivery dates list without weekends
function prepareDatesList( $self_delivery = false, $force = false )
{
if ( !empty( $this->dates_list ) && is_array( $this->dates_list ) && $force === false )
{
return $this->dates_list;
}
setlocale( LC_ALL, 'ru_RU.UTF-8', 'rus_RUS.UTF-8', 'Russian_Russia.UTF-8' );
$this->dates_list = array();
@ChezRD
ChezRD / gist:472b4e6ef3f868e79ca2a505f3c39bad
Created May 10, 2016 22:28 — forked from mhawksey/gist:1106744
Bunch of Google Apps Script snippets for getting social bookmark/share counts. Used in http://mashe.hawksey.info/2011/07/shared-counts/
/*
All code apart from getPlusones()
Copyright 2011 Martin Hawksey
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
/**
* @author Rodinei Fagundes <rodinei.jf@gmail.com>
*/
import { Directive, HostListener, Input } from '@angular/core';
import { NgControl } from '@angular/forms';
@Directive({
selector: '[custom-directive]' // Attribute selector