Skip to content

Instantly share code, notes, and snippets.

View jroenf's full-sized avatar

jroenf jroenf

  • Netherlands, 's-Hertogenbosch
View GitHub Profile
@jroenf
jroenf / main.go
Created July 1, 2024 07:27
Go script to extract a list of ids and names in .csv format from a json file
package main
import (
"encoding/csv"
"encoding/json"
"fmt"
"net/http"
"net/url"
"os"
"strconv"
@jroenf
jroenf / main
Created May 3, 2019 08:15
Google Ads script: Remove all product partitions from one campaign
function main() {
var currentAccount = AdsApp.currentAccount();
Logger.log('curaccount:' + currentAccount.getName());
var campaignIterator = AdsApp.shoppingCampaigns().withIds([1051286818]).get();//.get();
var campaign = campaignIterator.next();
Logger.log('campaign: ' + campaign.getName());
var adGroupIterator = campaign.adGroups().get();
while(adGroupIterator.hasNext()) {
var adGroup = adGroupIterator.next();
@jroenf
jroenf / TranslateRobot.php
Last active December 27, 2017 12:11
Kleine opdracht met vragen
<?php
namespace Di;
class TranslateRobot
{
public $message;
@jroenf
jroenf / 0_reuse_code.js
Created March 14, 2017 14:27
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@jroenf
jroenf / privateprotectedtest.php
Last active January 15, 2017 16:00
Test protected private method
/**
* https://jtreminio.com/2013/03/unit-testing-tutorial-part-3-testing-protected-private-methods-coverage-reports-and-crap/
*
* Call protected/private method of a class.
*
* @param object &$object Instantiated object that we will run method on.
* @param string $methodName Method name to call
* @param array $parameters Array of parameters to pass into method.
*
* @return mixed Method return.
@jroenf
jroenf / dabblet.css
Created July 21, 2016 19:41
The first commented line is your dabblet’s title
/**
* The first commented line is your dabblet’s title
*/
background: #f06;
background: linear-gradient(45deg, #f06, yellow);
min-height: 100%;
@jroenf
jroenf / designer.html
Last active August 29, 2015 14:06
designer
<link rel="import" href="../core-scaffold/core-scaffold.html">
<link rel="import" href="../core-header-panel/core-header-panel.html">
<link rel="import" href="../core-menu/core-menu.html">
<link rel="import" href="../core-item/core-item.html">
<link rel="import" href="../core-icon-button/core-icon-button.html">
<link rel="import" href="../core-toolbar/core-toolbar.html">
<link rel="import" href="../core-menu/core-submenu.html">
<link rel="import" href="../paper-tabs/paper-tabs.html">
<link rel="import" href="../paper-tabs/paper-tab.html">
@jroenf
jroenf / designer.html
Created September 7, 2014 02:37
designer
<link rel="import" href="../cool-clock/cool-clock.html">
<link rel="import" href="../core-menu/core-submenu.html">
<link rel="import" href="../core-item/core-item.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;
@jroenf
jroenf / designer.html
Last active August 29, 2015 14:06
designer
<link rel="import" href="../core-scaffold/core-scaffold.html">
<link rel="import" href="../core-header-panel/core-header-panel.html">
<link rel="import" href="../core-menu/core-menu.html">
<link rel="import" href="../core-item/core-item.html">
<link rel="import" href="../core-icon-button/core-icon-button.html">
<link rel="import" href="../core-toolbar/core-toolbar.html">
<link rel="import" href="../core-menu/core-submenu.html">
<link rel="import" href="../google-map/google-map.html">
<polymer-element name="my-element">
@jroenf
jroenf / shipment.html
Created May 9, 2014 09:31
Send an email with Zend Framework 1 and dwoo templates
{extends 'jaloezieen/base/htmlmail.html'}
{block "mailcontent"}
<p>Email</p>
<p>Hello, goodbye</p>
{/block}