Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000
/*bitbucket.org dark css theme*/ | |
body, aside { | |
background: #222 !important; | |
background-color: #222 !important; | |
color: #bbb !important; | |
} | |
h1, h2, h3, h4, h5, span { | |
background-color: transparent !important; | |
color: #FFC963 !important; |
server { | |
# adjusted nginx.conf to make Laravel 8 apps with PHP 8.0 features runnable on Azure App Service | |
# @see https://laravel.com/docs/8.x/deployment | |
listen 8080; | |
listen [::]:8080; | |
root /home/site/wwwroot/public; | |
index index.php; | |
server_name example.com www.example.com; | |
location / { |
#!/usr/bin/env ruby | |
require 'timeout' | |
members = %w(Gatis Jānis Anna Ilze Ieva Kaspars Juris Klāvs Pēteris) | |
takers = [] | |
givers = [] | |
exceptions = { 'Gatis' => 'Jānis'} | |
begin | |
Timeout::timeout(2) do |
# Source: https://gist.github.com/d2f36b05bf959e5fc91497ea3f0dceb3 | |
########################################################## | |
# Should We Replace Docker Desktop With Rancher Desktop? # | |
# https://youtu.be/bYVfCp9dRTE # | |
########################################################## | |
# Referenced videos: | |
# - Free Docker Desktop Alternative For Mac And Windows: https://youtu.be/LGNEG-t96eE | |
# - K3d - How to run Kubernetes cluster locally using Rancher k3s: https://youtu.be/mCesuGk-Fks |
function getJSON(aUrl,sheetname) { | |
//var sheetname = "test"; | |
//var aUrl = "http://pipes.yahoo.com/pipes/pipe.run?_id=286bbb1d8d30f65b54173b3b752fa4d9&_render=json"; | |
var response = UrlFetchApp.fetch(aUrl); // get feed | |
var dataAll = JSON.parse(response.getContentText()); // | |
var data = dataAll.value.items; | |
for (i in data){ | |
data[i].pubDate = new Date(data[i].pubDate); | |
data[i].start = data[i].pubDate; | |
} |
import 'package:fire_table_demo/home_page/landingpage.dart'; | |
import 'package:flutter/material.dart'; | |
import 'package:splash_screen_view/SplashScreenView.dart'; | |
class SplashScreenDemo extends StatefulWidget { | |
SplashScreenDemo({Key key}) : super(key: key); | |
@override | |
_SplashScreenDemoState createState() => _SplashScreenDemoState(); | |
} |
# Use a FOR loop for each file in 'model_out/' | |
for file in my_r_scripts /* | |
do | |
# Create a CASE statement for each file's contents | |
case $(cat $file) in | |
# Match on tree and non-tree models | |
*"Random Forest"*|*GBM*|*XGBoost*) | |
mv $file tree_models/ ;; | |
*KNN*|*Logistic*) | |
rm $file ;; |
import 'dart:async'; | |
import 'dart:math' as math; | |
import 'package:flutter/material.dart'; | |
class AirHockey extends StatefulWidget { | |
@override | |
_AirHockeyState createState() => _AirHockeyState(); | |
} |
#!/bin/sh | |
# | |
# Bash script for uploading videos to Youtube.com | |
# | |
# Usage: | |
# ./youtube.bash path-to-movie-movie.mov | |
# | |
# Setup | |
# Goto https://console.developers.google.com | |
# Create app, enable Youtube Data API and create OAuth credentials, client id and client secret. |
Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000