This file contains hidden or 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
| // Jobber.cpp : Defines the entry point for the application. | |
| // | |
| #include "stdafx.h" | |
| #include "Jobber.h" | |
| int APIENTRY wWinMain(_In_ HINSTANCE hInstance, | |
| _In_opt_ HINSTANCE hPrevInstance, | |
| _In_ LPWSTR lpCmdLine, | |
| _In_ int nCmdShow) |
This file contains hidden or 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
| import rx from 'rx'; | |
| import requestRx from '../request-rx'; | |
| import connect from 'connect'; | |
| import semver from 'semver'; | |
| import _ from 'lodash'; | |
| import http from 'http'; | |
| import logger from '../logger'; | |
| // Public: This class handles updates via Squirrel for Mac (aka the 'auto-updater' | |
| // module in Atom Shell). This class is complicated because we create a fake update |
This file contains hidden or 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
| <!doctype html> | |
| <html> | |
| <head> | |
| <meta charset="utf-8"> | |
| <title>Electron boilerplate</title> | |
| <link rel="stylesheet" href="index.css"> | |
| <script> | |
| window.foo = {}; | |
| window.foo.bar = { | |
| baz: function(a,b) { |
This file contains hidden or 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
| async convertBlobToBuffer(blob) { | |
| let fileReader = new FileReader(); | |
| // Listen to when reading is finished and | |
| // run the callback with a buffer. | |
| let loadEnd = new Promise((resolve, reject) => { | |
| fileReader.addEventListener("loadend", (ev) => { | |
| if (ev.error) { | |
| reject(ev.error); | |
| } |
This file contains hidden or 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
| import path from 'path'; | |
| import _ from 'lodash'; | |
| import generatePushManifest from './generate-push-manifest'; | |
| export default function autoPush(fileRoot) { | |
| const realRoot = path.resolve(fileRoot); | |
| let pushManifest = generatePushManifest(realRoot); | |
| return (res, filePath) => { |
This file contains hidden or 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
| <dom-module id="slack-login"> | |
| <style> | |
| :host { | |
| display: block; | |
| } | |
| #card { | |
| min-width: 500px; | |
| } | |
This file contains hidden or 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
| using System; | |
| using System.Collections.Generic; | |
| using System.Linq; | |
| using System.Security; | |
| using System.Text; | |
| using System.Threading.Tasks; | |
| namespace Squirrel.Update | |
| { | |
| public static class CopStache |
This file contains hidden or 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
| import {p} from './get-path'; | |
| console.log(p`${'userDesktop'}/MyApp`); | |
| // On Windows | |
| >> C:\Users\TheUser\Desktop\MyApp | |
| // On OS X | |
| >> /Users/TheUser/Desktop/MyApp |
This file contains hidden or 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
| using System; | |
| using System.Collections.Generic; | |
| using System.Linq; | |
| using System.Runtime.InteropServices; | |
| using System.Text; | |
| using System.Threading.Tasks; | |
| using System.Windows.Interop; | |
| namespace SlackNotifier | |
| { |
This file contains hidden or 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
| gcm git | %{$_.Path.Replace("\cmd\git.exe", "\bin")} | cd | |
| ls *.dll | %{.\rebase.exe -d -b 0x70000000 -o 0x10000 $_} |