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
| static BitmapLayer *s_background_layer; | |
| static GBitmap *s_background_bitmap; | |
| static void configure_background(Layer *window_layer, GRect bounds) { | |
| s_background_bitmap = gbitmap_create_with_resource(RESOURCE_ID_IMAGE_BACKGROUND); | |
| s_background_layer = bitmap_layer_create(bounds); | |
| bitmap_layer_set_bitmap(s_background_layer, s_background_bitmap); | |
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> | |
| <title>Slate Example Configuration</title> | |
| <link rel='stylesheet' type='text/css' href='css/slate.min.css'> | |
| <script src='js/slate.min.js'></script> | |
| <style> | |
| .title { | |
| padding: 15px 10px; | |
| text-transform: uppercase; |
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
| Sub EmailDocument() | |
| 'On Error Resume Next | |
| If Len(ActiveDocument.Path) = 0 Then | |
| ActiveDocument.Save | |
| End If | |
| Dim RanOutlook As Boolean | |
| Dim Outlook As Object 'Outlook.Application throws "Compile error: User-defined type not defined" |
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
| Sub EmailDocument() | |
| On Error Resume Next | |
| If Len(ActiveDocument.Path) = 0 Then | |
| ActiveDocument.Save | |
| End If | |
| Dim RanOutlook As Boolean | |
| Dim Outlook As Outlook.Application |
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
| public static class OneDrive | |
| { | |
| private static string _Path; | |
| public static string Path => _Path ??= GetPath(); | |
| static string GetPath() => Environment.GetEnvironmentVariable("OneDriveConsumer"); | |
| } |
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 Newtonsoft.Json.Linq; | |
| using System; | |
| using System.IO; | |
| public static class Dropbox | |
| { | |
| private static string _Path; | |
| public static string Path | |
| { | |
| get { return _Path ?? (_Path = GetPath()); } |
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
| [DllImport("user32.dll", SetLastError = true)] | |
| [return: MarshalAs(UnmanagedType.Bool)] | |
| static extern bool AddClipboardFormatListener(IntPtr hwnd); | |
| [DllImport("user32.dll", SetLastError = true)] | |
| [return: MarshalAs(UnmanagedType.Bool)] | |
| static extern bool RemoveClipboardFormatListener(IntPtr hwnd); | |
| private const int WM_CLIPBOARDUPDATE = 0x031D; |
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
| sudo apt-get update | |
| sudo apt-get install ruby-full | |
| sudo gem install jekyll | |
| sudo gem install jekyll-sitemap | |
| sudo gem install jekyll-redirect-from |
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
| sudo apt-get purge nodejs -y | |
| sudo apt-key adv --keyserver keyserver.ubuntu.com --recv 68576280 | |
| sudo apt-add-repository "deb https://deb.nodesource.com/node_4.x precise main" | |
| sudo apt-get update | |
| sudo apt-get install nodejs |
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
| wget http://node-arm.herokuapp.com/node_latest_armhf.deb | |
| sudo dpkg -i node_latest_armhf.deb | |
| sudo apt-get install libx11-dev | |
| git clone https://github.com/microsoft/vscode | |
| cd vscode | |
| git checkout 1.0.0 | |
| ./scripts/npm.sh install --arch=armhf |