What do you want to save?
Add Code snippet
New code examples
-
ActionScript 2021-10-28 05:57:09
silk road block-cypher
# get a couple transactions from a known address (supposedly Silk Road) $ curl https://api.blockcypher.com/v1/btc/main/addrs/1rundZJCMJhUiWQNFS5uT3BvisBuLxkAp?limit=2 # get one of the two transactions (a big one) $ curl https://api.blockcypher.com/v1/btc/... Add solution -
Javascript 2021-10-28 00:30:13
express delete image
const router = express.Router(); const path = require("path"); const fs = require('fs'); var multer = require('multer') var upload = multer({ dest: 'uploads/' }) router.get('/:folder/:id', async (req, res) => { let filepath = path.join(_... Add solution -
PHP 2021-10-27 17:41:10
php discord webhook
<?php //2021 current working model $url = "https://discordapp.com/api/webhooks/0000000/ABCDEFGH...."; // security issue with this being false not tested ?? curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); $hookObject = json_encode([ /* ... Add solution -
Other 2021-10-27 15:11:09
how to install phpmyadmin with nginx on ubuntu 20.04
You need to do 6 steps, that are: 1. Install phpMyAdmin 2. Create Symbolic Link 3. Test phpMyAdmin 4. Create MySQL Superuser 5. Obscure phpMyAdmin URL (Recommended) 6. Secure phpMyAdmin (Recommended) Follow the Steps on this tutorial (it's updated and wo... Add solution -
-
Javascript 2021-10-26 14:16:12
if (req.url === "/script.js")
var http = require('http'); var url = require('url'); var fs = require('fs'); var path = require('path'); http.createServer(function(req, res) { if (req.url === '/') { fs.readFile('./index.html', function(err, data) { if (err){ ... Add solution -
Python 2021-10-24 00:56:14
django slug int url mapping
# in views define the int slugs then the url mapping is like this from django.urls import path, re_path from . import views urlpatterns = [ path('articles/2003/', views.special_case_2003), re_path(r'^articles/(?P<year>[0-9]{4})/$', views.... Add solution -
Other 2021-10-24 00:21:09
Wiki search app
// JavaScript Document let resultsList = document.getElementById('resultsList'); let searchForm = document.getElementById('searchForm'); let searchInput = document.getElementById('searchInput'); searchForm.addEventListener('submit', (e)=> { e.preven... Add solution