Skip to content

Instantly share code, notes, and snippets.

View vscodesetting.json
{
// "emmet.excludeLanguages": [],
// "emmet.includeLanguages": {
// "markdown": "html"
// },
// "files.associations": {
// "*.css": "postcss",
// "*.js": "javascriptreact",
// "*.blade.php": "blade"
// },
@trigun539
trigun539 / icon-generator.sh
Created Jul 16, 2020
Utility to create icons for iOS app
View icon-generator.sh
set -e
SRC_FILE="$1"
DST_PATH="$2"
CONTENTS_JSON_PATH="$3"
VERSION=1.0.0
info() {
local green="\033[1;32m"
View webcam.html
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Display Webcam Stream</title>
<style>
#container {
margin: 0px auto;
width: 500px;
height: 375px;
View rgb_controller_mode_straight.cpp
#include "rgb_controller_mode.h"
#include "rgb_controller_mode_straight.h"
#include "FastLED.h"
RGBControllerModeStraight::RGBControllerModeStraight(RGBController* controller, uint8_t r, uint8_t g, uint8_t b) {
RGBControllerMode::RGBControllerMode(&controller);
_color = CRGB(r, g, b);
};
View Final Assignment Web Scraping Notebook.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Tanushree0905
Tanushree0905 / PY0101EN-2-2-Lists.ipynb
Created Jul 16, 2020
Created on Skills Network Labs
View PY0101EN-2-2-Lists.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View rle.clj
(defn rle
[s]
(->> s
(partition-by identity)
(map #((juxt first count) %))))
(defn rld
[pairs]
(->> pairs
(map (fn [[k v]] (clojure.string/join (repeat v k))))
@pedronis
pedronis / gist:031cbf856cd0739ae0719c12f3795003
Created Jul 16, 2020
untested diff for add seed/preseed times
View gist:031cbf856cd0739ae0719c12f3795003
diff --git a/overlord/devicestate/devicemgr.go b/overlord/devicestate/devicemgr.go
index e9666d8ab..929773a80 100644
--- a/overlord/devicestate/devicemgr.go
+++ b/overlord/devicestate/devicemgr.go
@@ -425,6 +425,26 @@ func (m *DeviceManager) ensureOperational() error {
return nil
}
+var startTime time.Time
+
@Fzcpp
Fzcpp / introrx.md
Created Jul 16, 2020 — forked from staltz/introrx.md
The introduction to Reactive Programming you've been missing
View introrx.md
View test_dash.py
import dash
import dash_core_components as dcc
import dash_html_components as html
from dash.dependencies import Input, Output
from clickhouse_driver import Client
client = Client(host='ec2-3-16-148-63.us-east-2.compute.amazonaws.com',
user='default',
password='',
port='9000',
You can’t perform that action at this time.