View exportbrave.ps1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Path to chrome bookmarks | |
$pathToJsonFile = "$env:localappdata\BraveSoftware\Brave-Browser\User Data\Default\Bookmarks" | |
$htmlOut = 'C:\temp\BraveBookmarks.html' | |
$htmlHeader = @' | |
<!DOCTYPE NETSCAPE-Bookmark-file-1> | |
<!--This is an automatically generated file. | |
It will be read and overwritten. | |
Do Not Edit! --> | |
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8"> |
View Python-InfluxDB.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
from datetime import datetime | |
from influxdb import InfluxDBClient | |
def func_log(unit, kind, value): | |
client = InfluxDBClient(host='127.0.0.1', port=8086) | |
client.create_database('DBname') | |
client.switch_database('DBname') | |
json_body = [ | |
{ |
View gist:5025797
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#define MAX_SIZE 100 | |
void push ( int a[ ], int *top , int x); | |
int pop ( int a[ ], int *top); | |
void print ( int a[ ], int top ); | |
int exit( ); | |
int initialise( ); | |
///////////////////////////////////////// |
View gist:4951814
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
void main() | |
{ | |
int a[10], i, j, k; | |
for (i=0; i<=9; i++) | |
{ | |
a[i]; | |
} |