Skip to content

Instantly share code, notes, and snippets.

View radinreth's full-sized avatar
👨‍💻
Hello World!

Radin Reth radinreth

👨‍💻
Hello World!
View GitHub Profile
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)

Deploying Yeoman apps to Heroku

Prerequisites

This assumes you already have a Yeoman app and are ready for publishing

Build for Production

Create production directory & assets

@radinreth
radinreth / 0_reuse_code.js
Created May 23, 2017 15:17
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@radinreth
radinreth / free_oreilly_ebooks.sh
Created May 12, 2017 10:24 — forked from rnelson/free_oreilly_ebooks.sh
O'Reilly Gives Away Free Programming Ebooks
#!/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
@radinreth
radinreth / free_ebooks.txt
Created May 12, 2017 10:24 — forked from dasgoll/free_ebooks.txt
Free ebooks
http://www.allitebooks.com/
it-ebooks.info
www.it-ebooks.com
@radinreth
radinreth / manifest.json
Created May 9, 2017 11:33 — forked from bblanchon/manifest.json
syncfusion-ebook-links
{
"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: yamukaxoje@mailzi.ru, hasło: wykop14k

A tutaj lista poszczególnych tytułów (83):

@radinreth
radinreth / ebooks.md
Created May 9, 2017 11:17 — forked from aalvesjr/ebooks.md
My ebooks from packetpub

Ebooks:

  • 3D Printing with RepRap Cookbook [eBook] - Richard Salinas
  • 3D Printing with SketchUp [eBook] - Marcus Ritland
  • ASP.NET 3.5 CMS Development [eBook] - Curt Christianson, Jeff Cochran
  • ASP.NET Data Presentation Controls Essentials [eBook] - Joydip Kanjilal
  • ASP.NET Web API: Build RESTful web applications and services on the .NET framework [eBook] - Joydip Kanjilal
  • Allan Brito
  • Amazon Web Services: Migrating your .NET Enterprise Application [eBook] - Rob Linton
  • Android 3.0 Application Development Cookbook [eBook] - Kyle Merrifield Mew
#!/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