This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//most of the code on the internet is for version 5 so here is a workign sample | |
//hope it helps somebody | |
// Demonstrate request-reply identities | |
var zmq = require('zeromq') | |
var helper = require('./zhelpers') | |
const serverkey = zmq.curveKeyPair() | |
const clientkey = zmq.curveKeyPair() | |
const addr = "tcp://127.0.0.1:12345"//CURVE don't work for inproc schema |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<form class="form-horizontal" validate-files method="post" action="/pics" enctype="multipart/form-data"> | |
<div class="form-group"> | |
<label class="col-sm-4">file 1</label> | |
<div class="col-sm-7"> | |
<input type="file" class="form-control" name="pic1" accept=".jpg" accept-width="300" accept-height="350" /> | |
<div class="helper-block">jpg and 300x350</div> | |
</div> | |
</div> | |
<div class="form-group"> | |
<label class="col-sm-4">file 2</label> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = function () { | |
return { | |
type: 'react-component', | |
npm: { | |
esModules: true, | |
umd: false | |
}, | |
babel: { | |
presets: ['@emotion/babel-preset-css-prop'], | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//you can use this script with browser extensions like cjs or script monkey | |
//you have to inject jQuery | |
$('.score').each((_,el)=>{ | |
const points = Number($(el).text().replace(' points', '')) | |
if(points < 100) | |
return | |
$(el).parent().parent().prev().css({backgroundColor:'#efd52363'}) | |
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="row"> | |
<div id="to_hell_with_g_map" style="width: 100%; height: 500px"></div> | |
</div> | |
<link rel="stylesheet" href="https://unpkg.com/leaflet@1.3.1/dist/leaflet.css" integrity="sha512-Rksm5RenBEKSKFjgI3a41vrjkw4EVPlJ3+OiI65vTjIdo9brlAacEuKOiQ5OFh7cOI1bkDwLqdLw3Zg0cRJAAQ==" crossorigin="" /> | |
<script src="https://unpkg.com/leaflet@1.3.1/dist/leaflet.js" integrity="sha512-/Nsx9X4HebavoBvEBuyp3I7od5tA0UzAxs+j83KgC8PU0kgB4XiK4Lfe4y4cgBtaRJQEIFCW+oC506aPT2L1zw==" crossorigin=""></script> | |
<script type="text/javascript"> | |
var lat = 35.70603; | |
var lon = 51.43588; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, { Component } from 'react'; | |
import PropTypes from 'prop-types'; | |
import pure from 'recompose/pure'; | |
import Button from '@material-ui/core/Button'; | |
- import { withStyles, createStyles } from '@material-ui/core/styles'; | |
+ import { withStyles, createStyles, withTheme } from '@material-ui/core/styles'; | |
import ChevronLeft from '@material-ui/icons/ChevronLeft'; | |
import ChevronRight from '@material-ui/icons/ChevronRight'; | |
import compose from 'recompose/compose'; | |
import { translate } from 'ra-core'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Error: Invalid CSS after "#": expected id name, was "!/usr/bin/env node" | |
on line 1 of bin/sass-args.js | |
1: #!/usr/bin/env node | |
2: | |
3: const path = require('path') | |
4: const tsConfig = require(path.resolve(__dirname, '../tsconfig.json')) | |
5: | |
6: let packagePaths = tsConfig.compilerOptions.paths |