Skip to content

Instantly share code, notes, and snippets.

View EddyVinck's full-sized avatar
🎯
Focusing

Eddy EddyVinck

🎯
Focusing
View GitHub Profile
@EddyVinck
EddyVinck / setup.md
Last active July 18, 2019 13:16
Setting up ssh for Gitlab on Windows

After installing Git and in Git Bash...

$ ssh-keygen -t rsa

You can change the default name or location if you prefer

Copy the key to your GitLab

$ cat ~/.ssh/my_key.pub | xclip

{# The module_usage output #}
{
settings_module= {
body= {
widget_name=Module Usage,
module_id=6056115,
header=true,
header_links=true,
client_data_rows=true,
hero_image_with_text=true,
{% if use_header_logo %}
<!-- Start header logo -->
<table>
<tr>
<td>
<table>
<tr>
<td>
import { Selector } from "testcafe";
import { TodoPo } from "./po/todo.po";
// #1: page under test is http://todomvc.com/examples/vanillajs/
fixture("Test TodoMVC App").page("http://todomvc.com/examples/vanillajs/");
// #2
test("Create todo", async t => {
const todoList = Selector("ul.todo-list");
{# in my_email_template.html #}
{# Notice use_header_logo={{use_header_logo}} in the module_block. #}
{# This is how the value is passed into the module. #}
{# It's important to explicitly check for false since the value can be null #}
{# When the client has not changed the boolean switches in 'Module Usage' #}
{# This is based on the assumption that the module is enabled by default. #}
<table>
<tr>
{# In my_email_template.html #}
{# Add the control module so authors can change the settings in the template #}
{% module_block module "module_1234"
module_id="1234" label="Module Usage",
overrideable=True,
per_widget_wrapper_html='',
widget_name='Module Usage',
wrapping_html='',
label='Module Usage' %}
{% if module.module_settings.use_this_module_ %}
<!-- HTML to show when checked -->
{% endif %}
<!-- All the markup you see here is added by HubSpot-->
<tr>
<td align="center" valign="top" class="bodyContent" width="100%" colspan="12">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td valign="top" colspan=12 width="100.0%" class=" column">
<div class="widget-span widget-type-custom_widget ">
<div class="layout-widget-wrapper">
{% module_block module "module_1234"
module_id=5678,
@EddyVinck
EddyVinck / 2017-06-28T12_53_16_520Z-debug.log
Created June 28, 2017 12:54
Debug log after updating to webpack 3
0 info it worked if it ends with ok
1 verbose cli [ 'C:\\Program Files\\nodejs\\node.exe',
1 verbose cli 'C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js',
1 verbose cli 'run',
1 verbose cli 'build' ]
2 info using npm@4.2.0
3 info using node@v7.9.0
4 verbose run-script [ 'prebuild', 'build', 'postbuild' ]
5 info lifecycle webpack-demo@1.0.0~prebuild: webpack-demo@1.0.0
6 silly lifecycle webpack-demo@1.0.0~prebuild: no script for prebuild, continuing
// by: throw_away_stacy on reddit
// and yes I do birthday parties too
const WebSocket = require('websocket').w3cwebsocket;
const users = require('./users.json');
const Q = require('q');
const superagent = require('superagent');
const _ = require('highland');
const getPixels = require('get-pixels');