Skip to content

Instantly share code, notes, and snippets.

View thisconnect's full-sized avatar
💭
Set status

tcme thisconnect

💭
Set status
View GitHub Profile
const postcss = require('postcss');
const importCSS = require('postcss-import');
const copyCSS = require('postcss-copy');
const prefixCSS = require('autoprefixer');
const customPropertiesCSS = require('postcss-custom-properties');
const pxtoremCSS = require('postcss-pxtorem');
const pixremCSS = require('pixrem');
// const cssnano = require('cssnano');
const fildes = require('fildes');
const readFile = fildes.readFile
@thisconnect
thisconnect / fromcjs.html
Last active February 7, 2016 16:07
Build redux with rollup, download, `npm i && npm start`
<!doctype html>
<meta charset="utf-8">
<title>fromcjs</title>
<script src="fromcjs.iife.js"></script>
@thisconnect
thisconnect / install-go.sh
Last active September 5, 2016 11:24
compile go from source
#!/bin/bash
mkdir -p ~/go
cd ~/go
# first install go1.4
git clone --branch go1.4.3 --depth 1 https://go.googlesource.com/go go1.4
cd go1.4/src
./make.bash
../bin/go version
const fs = require('fs')
const init = require('./init.js')
// WebRTC-Star Signal Server for js-ipfs
// SignalServer: null,
init({
repo: process.env.IPFS_PATH || './ipfs',
Addresses: {
API: '/ip4/127.0.0.1/tcp/5001',
Swarm: ['/ip4/0.0.0.0/tcp/4001'],
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@thisconnect
thisconnect / webbuild.diff
Created April 23, 2024 15:17
diff the built files
diff --git a/build/assets/index.es.js b/build/assets/index.es.js
index e296771..b90fa8b 100644
--- a/build/assets/index.es.js
+++ b/build/assets/index.es.js
@@ -1578,7 +1578,7 @@ function requireBrowser() {
function wrap(opts, logger, level) {
if (!opts.transmit && logger[level] === noop)
return;
- logger[level] = function(write) {
+ logger[level] = /* @__PURE__ */ function(write) {