Skip to content

Instantly share code, notes, and snippets.

View deepak1556's full-sized avatar

Robo deepak1556

  • Microsoft
  • Japan
View GitHub Profile
@deepak1556
deepak1556 / index.html
Last active November 26, 2019 03:08
Debugging Async/Await crash with electron
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Hello World!</title>
</head>
<body>
<h1>Hello World!</h1>
</body>
<script>
@deepak1556
deepak1556 / index.html
Created November 12, 2019 01:36
Wrong value of window.isMaximized when task bar is auto-hidden
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Hello World!</title>
</head>
<body>
</body>
<script>
const remote = require('electron').remote
@deepak1556
deepak1556 / log.txt
Last active October 29, 2019 17:27
Building libperfetto from lkgr chromium in non component build with VS 2019/2017
FAILED: obj/third_party/perfetto/protos/perfetto/common/cpp/descriptor.gen.obj
..\..\third_party\llvm-build\Release+Asserts\bin\clang-cl.exe /nologo /showIncludes "-imsvcC:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Tools\MSVC\14.23.28105\ATLMFC\include" "-imsvcC:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Tools\MSVC\14.23.28105\include" "-imsvcC:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um" "-imsvcC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\ucrt" "-imsvcC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\shared" "-imsvcC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\um" "-imsvcC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\winrt" "-imsvcC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\cppwinrt" -DDCHECK_ALWAYS_ON=1 -DUSE_AURA=1 "-DCR_CLANG_REVISION=\"373424-64a362e7-1\"" -D_HAS_NODISCARD -D_HAS_EXCEPTIONS=0 -D__STD_C -D_CRT_RAND_S -D_CRT_SECURE_NO_DEPRECATE -D_SCL_SECURE_NO_DEPRECATE -D_ATL_NO_OPE
@deepak1556
deepak1556 / main.js
Last active August 16, 2019 23:40
MacOS native tab clipped view with electron
// Modules to control application life and create native browser window
const {app, BrowserWindow} = require('electron')
// Keep a global reference of the window object, if you don't, the window will
// be closed automatically when the JavaScript object is garbage collected.
let mainWindow
function createWindow () {
// Create the browser window.
mainWindow = new BrowserWindow({
@deepak1556
deepak1556 / index.html
Last active June 27, 2019 19:35
webview/OOPIF events issue with electron4 and higher
<!DOCTYPE html>
<html>
<head>
<title>Split Pane</title>
<link rel="stylesheet" href="http://rawgithub.com/shagstrom/split-pane/master/split-pane.css" />
<style>
html, body {
font-family: "Helvetica Neue",Helvetica,Arial,sans-serif;
font-size: 14px;
height: 100%;
@deepak1556
deepak1556 / main.js
Created June 18, 2019 19:26
Font rendering check
const {app, BrowserWindow} = require('electron')
let mainWindow
function createWindow () {
// Create the browser window.
mainWindow = new BrowserWindow({
width: 800,
height: 600,
webPreferences: {
@deepak1556
deepak1556 / command.sh
Created October 30, 2015 09:27
Simple electron app to test pepper plugin load
#!/bin/bash
g++ ./hello.cc -shared -o libppapi_hello.so -I/home/robo/github/nacl_sdk/pepper_43/include -L/home/robo/github/nacl_sdk/pepper_43/lib/linux_host/Release -lppapi_cpp -lppapi -lpthread -Wall -fPIC
@deepak1556
deepak1556 / module.patch
Created April 15, 2015 18:42
Remove system location for module lookups
commit 826f15a681380b1d074db2cdeed4c5d143c3a3da
Author: Robo <hop2deep@gmail.com>
Date: Thu Apr 16 00:08:56 2015 +0530
remove system location for module lookups
diff --git a/lib/module.js b/lib/module.js
index 79359da..c04778b 100644
--- a/lib/module.js
+++ b/lib/module.js
@deepak1556
deepak1556 / expose_startdebug.patch
Created April 15, 2015 04:22
Exposing startdebug, use_debug_agent and debug_wait_connect
commit a90c4c4e8ec298823a5421bca96a102f78971515
Author: Robo <hop2deep@gmail.com>
Date: Tue Apr 14 07:47:25 2015 +0530
Exposing startdebug, use_debug_agent and debug_wait_connect
diff --git a/src/node.cc b/src/node.cc
index aa0af85..5f8dc07 100644
--- a/src/node.cc
+++ b/src/node.cc
@deepak1556
deepak1556 / index.js
Created February 23, 2015 05:56
requirebin sketch
var h = require('virtual-dom/h');
var diff = require('virtual-dom/diff');
var patch = require('virtual-dom/patch');
var createElement = require('virtual-dom/create-element');
var Delegator = require('dom-delegator')
var struct = require('observ-struct')
var observ = require('observ')
var raf = require('raf')
var state = struct({