A console for the Web written in completely in JavaScript. The console supports Web versions of some Linux commands. This work is based, in part, on earlier work by Eric Bidelman.
A Pen by Andrew Mitchell Barfield on CodePen.
A console for the Web written in completely in JavaScript. The console supports Web versions of some Linux commands. This work is based, in part, on earlier work by Eric Bidelman.
A Pen by Andrew Mitchell Barfield on CodePen.
# Binaural Beats Generator | |
# | |
# Streamlit applet to generate binaural beats. | |
# User can set Duration (seconds), Carrier Frequency (Hz), and Beat Frequency (Hz). | |
# Generated WAV file can be downloaded from link below graphs. | |
# | |
import streamlit as st | |
import numpy as np | |
import scipy.io.wavfile | |
from scipy.signal import windows |
CSC 340 Scientific Computing | |
Calculate exp(3.7) using Taylor's Expansion | |
Andrew M. Barfield | |
Thursday, January 15, 2009 | |
1:56:36 PM | |
Answer calculated in 29 iterations. | |
exp(3.7) = 40.447 |
using System; | |
namespace IteratorsExample { | |
class Program { | |
static void Main(string[] args) { | |
// Create an instance of the collection class | |
EvenIntegers ei = new EvenIntegers(); | |
// Iterate with foreach | |
foreach ( int num in ei ) { |
import requests | |
import json | |
WikiJSGraphQLAccessToken = "replace_with_your_token" | |
WikiJSGraphQLEndpoint = f"http://192.168.xx.xx:1234/graphql" | |
# Purge history older than 2 hours | |
# See: https://en.wikipedia.org/wiki/ISO_8601#Durations | |
GraphQLPagePurgeHistoryQuery = """mutation Page { |
cls | |
# Change the current directory to the System folder | |
cd C:\Windows\System32\ | |
# Display all executable files along with their file description | |
get-childitem * -include *.exe | foreach-object { | |
"{0}, {1}" -f $_.Name, | |
[System.Diagnostics.FileVersionInfo]::GetVersionInfo($_).FileDescription } |
#!/bin/bash | |
reset | |
# FFT bin size for a sample rate of 2,400,000 Hz: | |
# | |
# Bin Count Bin Width (Hz) Bin Width (kHz) | |
# 4 600,000.000 600.000 | |
# 8 300,000.000 300.000 | |
# 16 150,000.000 150.000 |
public class MyResource : IDisposable { | |
// Pointer to an external unmanaged resource. | |
private IntPtr handle; | |
// Other managed resource this class uses. | |
private Component component = new Component(); | |
// Track whether Dispose has been called. | |
private bool disposed = false; |
using System; | |
using System.Collections; | |
/* | |
* Sample Output | |
* | |
* 10 miles (16.09344 km) | |
* 86 miles (138.403584 km) | |
* 146 miles (234.964224 km) | |
* 214 miles (344.399616 km) |
using System; | |
using System.Collections.Generic; | |
using System.Text; | |
using Microsoft.Office.Interop.Excel; | |
using System.Runtime.InteropServices; | |
namespace ExcelTest | |
{ | |
class Program |