Skip to content

Instantly share code, notes, and snippets.

Avatar

Vivek Amilkanthawar vivek081166

View GitHub Profile
@vivek081166
vivek081166 / webdev_online_resources.md
Created Jul 20, 2018 — forked from bradtraversy/webdev_online_resources.md
Online Resources For Web Developers (No Downloading)
View webdev_online_resources.md
View blog2.dart
void main() {
print("こんにちは、ゴーリストのビベックです。");
print("Hello World! Vivek here again :)");
print("Let's learn Dart together!");
}
View main.dart
void main() {
print("こんにちは、ゴーリストのビベックです。");
print("Hello World! Vivek here ");
}
View blog2_static_typing.dart
void main() {
// Type Integer
int a = 8;
print(a);
// Type String
String b = "some text";
print(b);
View blog2_dynamic_typing.dart
void main() {
var a; // declaring varible // a = null
print(a);
a = 9; // initializing varible // a = 9
print(a);
a = "Vivek"; // a = "Vivek"
View transform.py
# import the necessary packages
import numpy as np
import cv2
def order_points(pts):
# initialzie a list of coordinates that will be ordered
# such that the first entry in the list is the top-left,
# the second entry is the top-right, the third is the
# bottom-right, and the fourth is the bottom-left
rect = np.zeros((4, 2), dtype = "float32")
View audio-to-spectrogram.sh
echo '>> START : Audio to Spectrogram creation <<'
for audioFile in ./audio_train/*.wav; do
echo $audioFile
ffmpeg -i $audioFile -lavfi showspectrumpic=s=1024x512:legend=disabled $audioFile.jpg
done
echo '>> END : Audio to Spectrogram creation <<'
View tsconfig.json
{
"compileOnSave": false,
"compilerOptions": {
"baseUrl": "./",
"outDir": "./dist",
"sourceMap": true,
"declaration": false,
"module": "commonjs",
"moduleResolution": "node",
"emitDecoratorMetadata": true,
View main.ts
import {app, BrowserWindow} from 'electron';
import * as path from 'path';
import * as url from 'url';
let win: BrowserWindow;
app.on('ready', createWindow);
app.on('activate', () => {
if (win === null) {