Skip to content

Instantly share code, notes, and snippets.

View ahmetus's full-sized avatar

Ahmet Usal ahmetus

View GitHub Profile

Why not: from Common Lisp to Julia

This article is a response to mfiano’s From Common Lisp to Julia which might also convey some developments happening in Common Lisp. I do not intend to suggest that someone coming from a Matlab, R, or Python background should pickup Common Lisp. Julia is a reasonably good language when compared to what it intends to replace. You should pickup Common Lisp only if you are interested in programming in general, not limited to scientific computing, and envision yourself writing code for the rest of your life. It will expand your mind to what is possible, and that goes beyond the macro system. Along the same lines though, you should also pickup C, Haskell, Forth, and perhaps a few other languages that have some noteworthy things to teach, and that I too have been to lazy to learn.

/I also do not intend to offend anyone. I’m okay with criticizing Common Lisp (I myself have done it below!), but I want t

@ahmetus
ahmetus / streamAudio.py
Created February 12, 2021 08:29 — forked from ZWMiller/streamAudio.py
Using Python to plot the current microphone's input and the Fourier Transform
try:
import pyaudio
import numpy as np
import pylab
import matplotlib.pyplot as plt
from scipy.io import wavfile
import time
import sys
import seaborn as sns
except:
@ahmetus
ahmetus / dht11mp.py
Created March 24, 2020 13:41
Esp32 DevkitV1 - DHT11 ve MicroPythonla Sıcaklık ve Nem Bilgisi Alma
from machine import Pin
import dht
import time
while True:
sensor = dht.DHT11(Pin(26))
sensor.measure()
print('Sıcaklık (Derece) = %.2f' % sensor.temperature())
print('Nem Oranı = %.2f' % sensor.humidity())
@ahmetus
ahmetus / dht11_nokia5110_hava.ino
Last active March 24, 2020 11:56
Esp32 devkit ve dht11 Sensör ile Hava Durumu okuyup PCD8544 Nokia 5110 LCD Ekranda Gösterme
/*********************************************************************
This is an example sketch for our Monochrome Nokia 5110 LCD Displays
Pick one up today in the adafruit shop!
------> http://www.adafruit.com/products/338
These displays use SPI to communicate
Adafruit invests time and resources providing this open source code,
please support Adafruit and open-source hardware by purchasing
@ahmetus
ahmetus / esp32_dht11.ino
Created March 23, 2020 14:24
Esp32-DHT11 Sıcaklık ve Nem Bilgisini Seri Monitöre Yazdırma
#include <Adafruit_Sensor.h>
#include <DHT.h>
#define DHTPIN 27 // Digital pin connected to the DHT sensor
#define DHTTYPE DHT11 // DHT 11
DHT dht(DHTPIN, DHTTYPE);
String readDHTTemperature() {
@ahmetus
ahmetus / _subscriptions.md
Created July 6, 2017 10:19 — forked from thenbrent/_subscriptions.md
WooCommerce Subscriptions REST API Endpoint Documentation (fork of https://gist.github.com/mattallan/fd52629eae293540c6d8)

Subscriptions

This section lists all API that can be used to create, edit or otherwise manipulate subscriptions.

Subscription Properties

Attribute Type Description
id integer Subscription ID (post ID) read-only
order_number integer Order number read-only
@ahmetus
ahmetus / restapi.txt
Created July 6, 2017 08:20 — forked from chrismccoy/restapi.txt
WordPress REST API Resources
Demo mobile app using WordPress REST API
https://github.com/scottopolis/wp-rest-api-demo
Expose Post Formats in WP REST API
https://github.com/kucrut/wp-bridge-post-formats
WP REST API endpoint for menus
https://github.com/kucrut/wp-bridge-menus
Powerful framework plugin for turning your WordPress theme into an isomorphic JavaScript application using the REST API
@ahmetus
ahmetus / my-sugars.sh
Created June 17, 2017 17:38 — forked from rowanmanning/my-sugars.sh
My Favourite Espresso Sugars
current_dir=`pwd`;
cd ~/Library/Application\ Support/Espresso/Sugars/;
echo "Installing Sugars:";
if [ ! -d ./CSS3.sugar ]; then
echo "Installing CSS3.sugar...";
git clone -q git://github.com/minimalweb/CSS3.sugar.git ./CSS3.sugar;
else
echo "CSS3.sugar already installed, attempting update...";
@ahmetus
ahmetus / frp.md
Last active March 12, 2016 13:07 — forked from ohanhi/frp.md
Learning FP the hard way: Experiences on the Elm language

Learning FP the hard way: Experiences on the Elm language

by Ossi Hanhinen, @ohanhi

with the support of Futurice 💚.

Licensed under CC BY 4.0.

Foreword

@ahmetus
ahmetus / FRPandPhilosophy.md
Last active August 27, 2015 15:35 — forked from dmvaldman/FRPandPhilosophy.md
Descartes, Berkeley and Functional Reactive Programming

Descartes, Berkeley and Functional Reactive Programming

By @dmvaldman

Functional Reactive Programming (FRP) is generating buzz as an alternative to Object Oriented Programming (OOP) for certain use cases. However, an internet search quickly leads a curious and optimistic reader into the rabbit-hole of monads, functors, and other technical jargon. I’ve since emerged from this dark and lonely place with the realization that these words are mere implementation details, and that the core concepts are far more universal. In fact, the groundwork was laid down many centuries before the first computer, and has more to do with interpretations of reality, than structuring programs. Allow me to explain.

There’s an old thought experiment that goes like this:

Tree