This is a guide on how to install Caffe for Ubuntu 16.04 and above, without GPU support (No CUDA required).
sudo apt-get install libopencv-dev python-opencv
import fs from "fs"; | |
import { Readable } from "stream"; | |
import { stat, move, remove } from "fs-extra"; | |
import Assembler from "stream-json/Assembler"; | |
import { chain } from "stream-chain"; | |
import { parser } from "stream-json"; | |
import { stringer } from "stream-json/Stringer"; | |
import { disassembler } from "stream-json/Disassembler"; |
<canvas id="canvas"></canvas> | |
<script> | |
(async () => { | |
const response = await fetch('./0000.bmp'); | |
const arraybuffer = await response.arrayBuffer(); | |
const dataview = new DataView(arraybuffer); | |
const offset = dataview.getUint32(10, true); | |
const width = dataview.getUint32(18, true); | |
let height = dataview.getInt32(22, true); |
#requires -Version 2 -Modules posh-git | |
function Write-Theme { | |
param( | |
[bool] | |
$lastCommandFailed, | |
[string] | |
$with | |
) |
import pymongo | |
from bson.json_util import dumps, RELAXED_JSON_OPTIONS | |
HOST = # Something like 'mongodb://localhost:23333' | |
DB = # What's the database of interest? | |
COLLECTION = # And the collection? | |
QUERY = # The query parameters, very similar to mongo in js, check out the ref below. | |
OUTPUT = # The json file will be written into which place? | |
# That's all you need to fill above. |
// How to download telegram sticker images | |
/* | |
1. Go to Telegram Web; | |
2. Open console (F12); | |
3. Paste the code below in the console and press Enter; | |
4. Open your stickers menu and make sure you see the sticker pack you want to download (so Telegram will load it). | |
5. At the console paste and run "downloadStickers()" any time you want to download a pack. | |
6. [Convert .webm to another format](http://www.freewaregenius.com/convert-webp-image-format-jpg-png-format/); | |
7. Happy hacking. |
// Provide custom regenerator runtime and core-js | |
require('babel-polyfill') | |
// Javascript required hook | |
require('babel-register')({presets: ['es2015', 'react']}) | |
// Image required hook | |
require('asset-require-hook')({ | |
extensions: ['jpg', 'png', 'gif', 'webp'], | |
limit: 8000 |
import React from 'react' | |
import { Link } from 'react-router-dom' | |
import fileLoader from 'file-loader' | |
class HeaderBar extends React.Component { | |
constructor(props) { | |
super(props) | |
} | |
render() { |