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
| var app = require('app'); | |
| var BrowserWindow = require('browser-window'); | |
| var ipc = require('electron').ipcMain; | |
| var dialog = require('dialog'); | |
| var fs = require('fs'); | |
| var editorWindow; | |
| app.on('ready', function(){ |
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
| var app = require('app'); | |
| var BrowserWindow = require('browser-window'); | |
| var ipc = require('electron').ipcMain; | |
| var dialog = require('dialog'); | |
| var fs = require('fs'); | |
| var editorWindow; | |
| app.on('ready', function(){ |
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
| var app = require('app'); | |
| var globalShortcut = require('global-shortcut'); | |
| app.on('ready', function(){ | |
| var win_space = globalShortcut.register('super+space', function(){ | |
| console.log('This is rubbish!'); | |
| }); | |
| if(!win_space){ |
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.Collections; | |
| using System.Collections.Generic; | |
| using UnityEngine; | |
| public class RandomModelGenerator : MonoBehaviour { | |
| public GameObject[] prefabs; | |
| public int seed; | |
| // Use this for initialization |
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
| -(void)showIndexPath:(NSIndexPath*)indexPath inView:(UIView*)view{ | |
| UILabel *lbl = [[UILabel alloc] init]; | |
| lbl.text = [NSString stringWithFormat:@"%ld-%ld", (NSUInteger)indexPath.section, (NSUInteger)indexPath.item]; | |
| lbl.font = [UIFont systemFontOfSize:8.f]; | |
| lbl.numberOfLines = 0; | |
| lbl.backgroundColor = [UIColor blackColor]; | |
| lbl.textColor = [UIColor whiteColor]; | |
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
| FROM ubuntu:latest | |
| ENV TERM xterm-256color | |
| WORKDIR /root | |
| RUN apt-get update \ | |
| && apt-get install -y \ | |
| ripgrep \ | |
| jq \ | |
| zsh \ | |
| curl \ | |
| git |
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
| version: 0.2 | |
| phases: | |
| build: | |
| commands: | |
| - set -e | |
| - mkdir ./build | |
| - cp ./public/** ./build | |
| - aws s3 sync ./build s3://simple-cloud-formation |
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
| version: 0.2 | |
| phases: | |
| build: | |
| commands: | |
| - set -e | |
| - docker-compose up -d site | |
| - docker cp serverless-blazor:/app/ServerlessBlazor/build/wwwroot . | |
| - docker-compose down | |
| - aws s3 sync ./wwwroot s3://<YOUR S3 BUCKET NAME> |
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
| <pre class="code"><code class="@Language"> | |
| @ChildContent | |
| </code></pre> | |
| @code { | |
| [Inject] private IJSRuntime _js { get; set; } | |
| [Parameter] public RenderFragment ChildContent { get; set; } | |
| [Parameter] public string Language { get; set; } = "csharp"; |
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
| namespace LeetCode | |
| { | |
| public class TwoSum_Problem | |
| { | |
| public static int[] TwoSum(int[] nums, int target) | |
| { | |
| for (int i = 0; i < nums.Length; i++) | |
| { | |
| for (int j = i+1; j < nums.Length; j++) | |
| { |