17 private links
In shell, you can do it in many ways:
cat input | xargs echo | tr ' ' ,
or
perl -pe 's/\r?\n/,/' input > output
I know you wanted this to be longer, but I don't really see the point of writing multi line script to solve such simple task - simple regexp (in case of perl solution) is fully workable, and it's not something artificially shortened - it's the type of code that I would use on daily basis to solve the issue at hand.
You can simply save and restore the entire events object:
var events=$._data(elem, 'events'); // save events
$._data(elem, 'events', {}); // cancel all events
// any code here will not fire events
$._data(elem, 'events', events); // restore events
This worked for me but may have unknown side effects ...
Conférence Paris Web
The DevExtreme React Chart is a component that visualizes data using a variety of series types, including bar, line, area, scatter, pie, and more. It is a stateless component - it relies on properties and works in controlled mode only. The DevExtreme React Chart has a composable and extendable architecture in which plugins provide additional elements (such as axes, legend, grid). Twitter Bootstrap and Material-UI rendering and theming are supported out of the box.
Free Bootstrap Admin Template
The only Bootstrap Admin Template you need to create amazing user interfaces.
CoreUI is an open source Bootstrap 4 based admin template.
Lose yourself in The Silent Age, the thrilling point-and-click adventure with over seven million downloads, completely revamped and updated for Steam.
jq is like sed
for JSON data - you can use it to slice and filter and map and transform structured data with the same ease that sed
, awk
, grep
and friends let you play with text.
jq is written in portable C, and it has zero runtime dependencies. You can download a single binary, scp it to a far away machine of the same type, and expect it to work.
jq can mangle the data format that you have into the one that you want with very little effort, and the program to do so is often shorter and simpler than you’d expect.
Carla Bozulich is diversely experimental, uncompromising and continues to be ceaselessly devoted to mixing art-punk ethics and creativity. Here, with Quieter, is an intensely emotive, intuitive, enchantingly cohesive collection of previously orphaned and one-off tracks where, uncharacteristically, nothing ever quite screams. Carla’s way with a fleshy edge remains sharp as ever. A couple of these are left over from the bountifully productive sessions from her brilliant and widely-acclaimed 2014 album Boy; others featuring collaborations with the likes of Marc Ribot, Sarah Lipstate (Noveller), Freddy Ruppert, Shahzad Ismaily and more.
Quieter is the result of this ceaselessly nomadic and defiantly DIY iconoclast having settled back in Los Angeles for a spell, recovering from tour-inflicted ear damage, sifting through unreleased/unfinished material, and finding herself drawn to working on the quieter stuff (relatively speaking) in her abundant archives. Ranging from the searching, searing opener "Let It Roll" - "the most honest work I've ever done" says Carla - to the chiming, deconstructed lullabies of "Glass House" (composed by Ruppert) and "Sha Sha" (from her mid-2000s project The Night Porter) and the album's sultry closing track "End Of The World"(a duet with Marc Ribot, who penned the song), Quieter is a brilliant addition to Bozulich's impressively diverse, adventurous, and unwaveringly authentic body of work.
Insomnia is a free cross-platform desktop application that takes the pain out of interacting with HTTP-based APIs. Insomnia combines an easy-to-use interface with advanced functionality like authentication helpers, code generation, and environment variables.
This middleware ensures that a user is logged in. If a request is received that is unauthenticated, the request will be redirected to a login page. The URL will be saved in the session, so the user can be conveniently returned to the page that was originally requested.
Passport is authentication middleware for Node.js. Extremely flexible and modular, Passport can be unobtrusively dropped in to any Express-based web application. A comprehensive set of strategies support authentication using a username and password, Facebook, Twitter, and more.
Bull is a Node library that implements a fast and robust queue system based on redis.
Although it is possible to implement queues directly using Redis commands, this library provides an API that takes care of all the low-level details and enriches Redis basic functionality so that more complex use-cases can be handled easily.
If you are new to queues you may wonder why they are needed after all. Queues can solve many different problems in an elegant way, from smoothing out processing peaks to creating robust communication channels between microservices or offloading heavy work from one server to many smaller workers, etc.
HTTP assertions made easy via superagent.
The motivation with this module is to provide a high-level abstraction for testing HTTP, while still allowing you to drop down to the lower-level API provided by superagent.
Moment-iterator is a moment-js addons, to iterate through date range, or create date range.
<!-- language-all: lang-js -->
Using Javascript on the server side like that requires that you use callbacks. You cannot "return" them like you want, you can however write a function to perform actions on the results.
sequelize.query(query).success(function(row) {
// Here is where you do your stuff on row
// End the process
process.exit();
}
A more practical example, in an express route handler:
// Create a session
app.post("/login", function(req, res) {
var username = req.body.username,
password = req.body.password;
// Obviously, do not inject this directly into the query in the real
// world ---- VERY BAD.
return sequelize
.query("SELECT * FROM users WHERE username = '" + username + "'")
.success(function(row) {
// Also - never store passwords in plain text
if (row.password === password) {
req.session.user = row;
return res.json({success: true});
}
else {
return res.json({success: false, incorrect: true});
}
});
});
Ignore injection and plain text password example - for brevity.
Functions act as "closures" by storing references to any variable in the scope the function is defined in. In my above example, the correct res
value is stored for reference per request by the callback I've supplied to sequelize. The direct benefit of this is that more requests can be handled while the query is running and once it's finished more code will be executed. If this wasn't the case, then your process (assuming Node.js) would wait for that one query to finish block all other requests. This is not desired. The callback style is such that your code can do what it needs and move on, waiting for important or processer heavy pieces to finish up and call a function once complete.
EDIT
The API for handling callbacks has changed since answering this question. Sequelize now returns a Promise
from .query
so changing .success
to .then
should be all you need to do.
nivo provides a rich set of dataviz components, built on top of the awesome d3 and Reactjs libraries.
Ce jeu de données provient d'un service public certifié
Fichier de correspondance entre les codes communes (INSEE) et les codes postaux au format csv.
Ce fichier comprend :
- Le code commune INSEE
- Le nom de la commune
- Le code postal
- Le libellé d’acheminement
- La ligne 5 de l'adresse (précision de l'ancienne commune ou du lieu-dit)
Il correspond aux codes postaux de France (métropole et DOM), ceux des TOM, ainsi que MONACO.