Edit: This list is now maintained in the rust-anthology repo.
In this guide I will go through all the steps to create a VPS, secure it and deploy a Django application. This is a summarized document from this digital ocean doc
Any commands with "$" at the beginning run on your local machine and any "#" run when logged into the server
Use this link and get $10 free. Just select the $5 plan unless this a production app.
We need to create a virtual env for our app to run in: More Here Run this command in whatever folder you want to create your venv folder
python -m venv ./venv
const { XrplClient } = require('xrpl-client') | |
const account = 'rvYAfWj5gh67oV6fW32ZzP3Aw4Eubs59B' // The issuer, Bitstamp USD | |
const currency = 'USD' | |
const client = new XrplClient() | |
const main = async () => { | |
await client.ready() | |
const { account_data } = await client.send({ command: 'account_info', account }) |
import React from 'react'; | |
import { render } from 'react-dom'; | |
import {PageContent, PageSidebar} from './Content'; | |
import Layout from './Layout'; | |
const Example = Layout({Content: PageContent, Sidebar: PageSidebar}); | |
render(Example, document.getElementById('app')) |
/*------------------------------------------ | |
Responsive Grid Media Queries - 1280, 1024, 768, 480 | |
1280-1024 - desktop (default grid) | |
1024-768 - tablet landscape | |
768-480 - tablet | |
480-less - phone landscape & smaller | |
--------------------------------------------*/ | |
@media all and (min-width: 1024px) and (max-width: 1280px) { } | |
@media all and (min-width: 768px) and (max-width: 1024px) { } |
This guide is for those who dares to install Windows 10 on slow netbooks (1GB of RAM).
Though Windows update program is over, you still may use old Windows product keys from license stickers to install Windows 10 on old machines.
UPD Jan 2019
This article is quite old, some instructions may be obsolete.
We will compare ASP.NET and Node.js for backend programming.
Source codes from examples.
This document was published on 21.09.2015 for a freelance employer. Some changes since then (14.02.2016):
- Koa.js no longer uses co-routines, it has switched to Babel's
async/await
.yield
andawait
are used almost in the same way, so I see no point to rewrite the examples.
GitHub Gists may be used not only for code snippets sharing but as a publishing platform for your articles.
Each gist is a git repo with restrictions and features:
- You can't create folders in any branch of the repo.
- Each file in the master branch larger than 1MB risks to be truncated so you can't add zip archive to master. But you may keep additional large files at another branches which can't be viewed on the gist page.
- If you want to use images in your article but wish non-embedded images to be hidden on the gist page then you may keep them in non-master branch and reference by
.//raw//foobar.jpg
.
import asyncio | |
import base64 | |
import json | |
import os | |
import pyaudio | |
from websockets.asyncio.client import connect | |
class SimpleGeminiVoice: | |
def __init__(self): |