This assumes you already have a Yeoman app and are ready for publishing
Create production directory & assets
| I'm using mongoose 4.11.1 | |
| and solve this problem by setting extra option `useMongoClient` to `true` | |
| ```javascript | |
| mongoose.Promise = global.Promise; | |
| mongoose.connect('mongodb://localhost:27017/database-name', { useMongoClient: true }, (err) => { | |
| err && console.error("Error: " + error); | |
| }); | |
| ``` | |
| [For More Detail](http://mongoosejs.com/docs/connections.html#use-mongo-client) |
This assumes you already have a Yeoman app and are ready for publishing
Create production directory & assets
| // Use Gists to store code you would like to remember later on | |
| console.log(window); // log the "window" object to the console |
| #!/bin/sh | |
| # http://www.oreilly.com/programming/free/ | |
| # https://news.slashdot.org/comments.pl?sid=9752765&cid=53044369 | |
| # https://news.slashdot.org/comments.pl?sid=9752765&cid=53045853 | |
| curl 'http://www.oreilly.com/business/free/' | grep '\.csp' | sed 's/^.*href="//' | sed 's/free\/\(.*\).csp.*">/free\/files\/\1.pdf/' | tr -d '\r' | xargs wget | |
| curl 'http://www.oreilly.com/data/free/' | grep '\.csp' | sed 's/^.*href="//' | sed 's/free\/\(.*\).csp.*">/free\/files\/\1.pdf/' | tr -d '\r' | xargs wget | |
| curl 'http://www.oreilly.com/design/free/' | grep '\.csp' | sed 's/^.*href="//' | sed 's/free\/\(.*\).csp.*">/free\/files\/\1.pdf/' | tr -d '\r' | xargs wget | |
| curl 'http://www.oreilly.com/iot/free/' | grep '\.csp' | sed 's/^.*href="//' | sed 's/free\/\(.*\).csp.*">/free\/files\/\1.pdf/' | tr -d '\r' | xargs wget | |
| curl 'http://www.oreilly.com/programming/free/' | grep '\.csp' | sed 's/^.*href="//' | sed 's/free\/\(.*\).csp.*">/free\/files\/\1.pdf/' | tr -d '\r' | xargs wget |
| http://www.allitebooks.com/ | |
| it-ebooks.info | |
| www.it-ebooks.com |
| { | |
| "manifest_version": 2, | |
| "name": "Syncfusion e-book links", | |
| "description": "Replace DOWNLOAD buttons by convenient links", | |
| "version": "1.0", | |
| "content_scripts": [ { | |
| "js": [ "jquery-1.11.1.min.js", "script.js" ], | |
| "matches": [ "https://www.syncfusion.com/resources/techportal/ebooks" ] | |
| } ] |
Trochę darmowych książek z programowania i szeroko rozumianego IT:
Wszystkie znajdziesz tutaj: https://www.syncfusion.com/resources/techportal/ebooks
By ściągnąć trzeba się zalogować/założyć darmowe konto (działa rejestracja z emaila tymczasowego)
Możecie użyć do logowania danych - email: [email protected], hasło: wykop14k
A tutaj lista poszczególnych tytułów (83):
| #!/usr/bin/env ruby | |
| require 'rubygems' | |
| require 'open-uri' | |
| require 'nokogiri' | |
| require 'net/http' | |
| url = 'http://hewgill.com/~greg/stackoverflow/ebooks/' | |
| root = uri.parse(url) |
| require 'nokogiri' | |
| require 'open-uri' | |
| MARK_FILE = "mark.dat" | |
| def wait_for_threads(threads) | |
| print "Waiting for downloads to finish..." | |
| threads.each { |t| t.join } | |
| puts " ok" | |
| end |