Skip to content

Instantly share code, notes, and snippets.

View steven7mwesigwa's full-sized avatar
💭
working on spring app

Steven Mwesigwa steven7mwesigwa

💭
working on spring app
View GitHub Profile
@steven7mwesigwa
steven7mwesigwa / app.js
Created September 11, 2021 18:15 — forked from JeffreyWay/app.js
Swappable Heading example
class SwappableHeading {
constructor(element, headings = []) {
this.element = element;
this.headings = headings;
this.current = 1;
}
async swap() {
while (true) {
await this.wait(2000);
<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => 'https://bitbucket.org/!api/2.0/repositories/test7_wanchai/test-indent/src/0a97dd980bd80b68270bbe64bbf1fc30fd409c33/dummy-100.txt',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => '',
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => 'https://bitbucket.org/api/2.0/repositories/test7_wanchai/test-indent/diffstat/0a97dd98..2e39c147',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => '',
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
@steven7mwesigwa
steven7mwesigwa / default nginx configuration file
Created November 17, 2023 00:11 — forked from meetkabeershah/default nginx configuration file
The default nginx configuration file inside /etc/nginx/sites-available/default
# Author: Zameer Ansari
# You should look at the following URL's in order to grasp a solid understanding
# of Nginx configuration files in order to fully unleash the power of Nginx.
# http://wiki.nginx.org/Pitfalls
# http://wiki.nginx.org/QuickStart
# http://wiki.nginx.org/Configuration
#
# Generally, you will want to move this file somewhere, and start with a clean
# file but keep this around for reference. Or just disable in sites-enabled.
#