Skip to content

Instantly share code, notes, and snippets.

View MarshallOfSound's full-sized avatar
:electron:
Building all the things...

Samuel Attard MarshallOfSound

:electron:
Building all the things...
View GitHub Profile
@MarshallOfSound
MarshallOfSound / gist:b03ed5333dcb6337dfc2
Last active August 29, 2015 14:19
Square sum problem
def square_sum(n):
number = str(n);
i = 1;
while (i <= len(number)):
if (len(number) % i == 0):
start = 0;
sum = 0;
while (start + i <= len(number)):
sum += (int(number[start:(start+i)])) ** 2;
start += i;
@MarshallOfSound
MarshallOfSound / Life Motto
Last active April 25, 2017 06:50
Javascript implemenation of Life Motto :)
var count = 0,
sad = function() {
if (++count === 1) {
return true;
}
return {
stop: function() {
console.log("I AM HAPPY!!!!");
}
};
#include <node.h>
#include <nan.h>
#include <sstream>
#include <string>
#include <Windows.h>
#define _WIN32_WINNT 0x050
using namespace v8;
Local<Function> cb;
2016-04-05 02:50:01> Program: Starting Squirrel Updater: --createShortcut=Google%20Play%20Music%20Desktop%20Player.exe
2016-04-05 02:50:01> ApplyReleasesImpl: About to create shortcuts for Google%20Play%20Music%20Desktop%20Player.exe, rootAppDir C:\Users\Samuel\AppData\Local\GPMDP_3
2016-04-05 02:50:01> ApplyReleasesImpl: Creating shortcut for Google%20Play%20Music%20Desktop%20Player.exe => C:\Users\Samuel\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Samuel Attard\Google Play Music Desktop Player.lnk
2016-04-05 02:50:01> ApplyReleasesImpl: About to save shortcut: C:\Users\Samuel\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Samuel Attard\Google Play Music Desktop Player.lnk (target C:\Users\Samuel\AppData\Local\GPMDP_3\Update.exe, workingDir C:\Users\Samuel\AppData\Local\GPMDP_3\app-3.0.1, args --processStart Google%20Play%20Music%20Desktop%20Player.exe)
2016-04-05 02:50:01> ApplyReleasesImpl: Creating shortcut for Google%20Play%20Music%20Desktop%20Player.exe => C:\Users\Samuel\Desktop\Google
class Node:
"""
Tree node: left and right child + data which can be any object
"""
def __init__(self, data=None):
"""
Node constructor
@param data node data object
"""
self.left = None
(function () {
// ...
h = y3.prototype;
h.zz = function(a) {
this.play(a, void 0, !0)
}
;
// Handles adding things to the queue
h.enqueue = function(a, b) {
var c = this.f_(3, a, b);

Keybase proof

I hereby claim:

  • I am marshallofsound on github.
  • I am marshallofsound (https://keybase.io/marshallofsound) on keybase.
  • I have a public key ASBF0EwJmIKSEExdGEBbbt8oExgmt8sPljTTtfWBV3amiwo

To claim this, I am signing this object:

@MarshallOfSound
MarshallOfSound / index.html
Created June 7, 2018 22:52
Electron Fiddle Gist
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Hello World!</title>
</head>
<body>
<h1>Hello World!</h1>
<!-- All of the Node.js APIs are available in this renderer process. -->
We are using Node.js <script>document.write(process.versions.node)</script>,
@MarshallOfSound
MarshallOfSound / index.html
Created June 7, 2018 23:04
Electron Fiddle Gist
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Hello World!</title>
</head>
<body>
<h1>Hello World!</h1>
<!-- All o