Skip to content

Instantly share code, notes, and snippets.

:shipit:
Shipping React Apps

Albin Ekblom albinekb

:shipit:
Shipping React Apps
Block or report user

Report or block albinekb

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View Github automerge
function run () {
const updateButton = document.querySelector('.branch-action-btn button')
const mergeButton = document.querySelector('.merge-message button')
if (mergeButton.disabled && !updatebutton.disabled) {
updateButton.click()
} else if (!mergeButton.disabled) {
mergeButton.click()
}
View gist:e3867192a5eb2c1755f3
Dexter = function () {
'use strict';
this.Cheerio = Npm.require('cheerio');
this.Request = Npm.require('request');
this.Future = Npm.require('fibers/future');
this.service = 'dexter';
this.jar;
this.url;
View gist:397a1e0a59a570c5d05f
<?php
$url = 'http://merchant.admin.cdon.com/api/importfile';
$key = 'nanana BATMAN';
$file_name_with_full_path = realpath('./Clothing.xlsx');
$post = array('name' => 'file', 'filename' => 'Clothing.xlsx', 'file_contents'=>'@'.$file_name_with_full_path);
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL,$target_url);
curl_setopt($ch, CURLOPT_HTTPHEADER, array(
View gist:4702cee2f5c46a22d3d5
// run at http://www.google.com/design/spec/style/color.html#color-ui-color-palette
var hex = "";
var rgb = "";
var g = document.getElementsByClassName('color-group');
for (var i = 0; i < g.length; i++){
var c = g[i].getElementsByClassName('color');
var title = c[0].textContent.split('\n')[1].replace(/\s+/g, '');
title = title.charAt(0).toLowerCase() + title.substring(1);
for (var a = 1; a < c.length; a++){
hex += ('@' + title + '--' + c[a].textContent.split('#')[0] + ': #' + c[a].textContent.split('#')[1] + ';\n')
@albinekb
albinekb / Material UI Color Palette.less
Last active Aug 29, 2015
Material UI Color Palette, for use with Less Preprocessor
View Material UI Color Palette.less
@red: #e51c23;
@red--50: #fde0dc;
@red--100: #f9bdbb;
@red--200: #f69988;
@red--300: #f36c60;
@red--400: #e84e40;
@red--500: #e51c23;
@red--600: #dd191d;
@red--700: #d01716;
@red--800: #c41411;
You can’t perform that action at this time.