Skip to content

Instantly share code, notes, and snippets.

View Chappie74's full-sized avatar
🎯
Focusing

Chappie74 Chappie74

🎯
Focusing
View GitHub Profile
function getRandomColor() {
const letters = "0123456789ABCDEF";
let color = "#";
for (let i = 0; i < 6; i++) {
color += letters[Math.floor(Math.random() * 16)];
}
return color;
}
setTimeout(()=>{
SQL Server 2017
----------------
Enterprise Core - 6GPYM-VHN83-PHDM2-Q9T2R-KBV83
Developer - 22222-00000-00000-00000-00000
Enterprise - TDKQD-PKV44-PJT4N-TCJG2-3YJ6B
Standard - PHDV4-3VJWD-N7JVP-FGPKY-XBV89
Web - WV79P-7K6YG-T7QFN-M3WHF-37BXC
https://www.teamos-hkrg.com/index.php?threads/microsoft-sql-server-english-2017-rtm-teamos.42103/
@Chappie74
Chappie74 / main.dart
Created May 23, 2022 12:06 — forked from tomasbaran/main.dart
[Flutter template] Save JSON file locally on your phone in Flutter
import 'package:flutter/material.dart';
import 'dart:io';
import 'package:path_provider/path_provider.dart';
import 'dart:convert';
const String kFileName = 'myJsonFile.json';
const InputDecoration kInputDecoration = InputDecoration(
border: OutlineInputBorder(),
labelText: 'Label Text',
);
@Chappie74
Chappie74 / inner_shadow.dart
Created March 17, 2022 20:32
Flutter Inner Shadow
import 'dart:ui';
import 'package:flutter/material.dart';
import 'package:flutter/rendering.dart';
class InnerShadow extends SingleChildRenderObjectWidget {
const InnerShadow({
Key? key,
this.shadows = const <Shadow>[],
Widget? child,
}) : super(key: key, child: child);

Keywords

node - defines a node/vertex in your graph.

edge - defines the relationship between nodes.

walker - creates a robot that traverses the graph performing various user defined actions.

spawn - used to create/instantiate a node.

<template>
<div class="row">
<div class="col-12">
<vue-p5 id="drawing_canvas"
@setup="setup"
@draw="draw"
@touchstarted="paint_on_sketch"
@touchmoved="paint_on_sketch"
@mousepressed="paint_on_sketch"
@mousedragged="paint_on_sketch"
data() {
return {
canvas: {
height: 500,
width: 600,
background_colour: "#2b2a29",
secondary: null
}
}
},