Skip to content

Instantly share code, notes, and snippets.

View intothedeep's full-sized avatar
🎯
Focusing

Taek Lim intothedeep

🎯
Focusing
View GitHub Profile
@jaskiratr
jaskiratr / chmod-400.cmd
Created June 29, 2018 01:03
Set permission of file equivalent to chmod 400 on Windows.
# Source: https://stackoverflow.com/a/43317244
$path = ".\aws-ec2-key.pem"
# Reset to remove explict permissions
icacls.exe $path /reset
# Give current user explicit read-permission
icacls.exe $path /GRANT:R "$($env:USERNAME):(R)"
# Disable inheritance and remove inherited permissions
icacls.exe $path /inheritance:r
/*global ace, define, global, module*/
/*jslint browser:true, for:true*/
(function language_init() {
"use strict";
var language = {};
language.setlangmode = function language_setlangmode(input) {
var langmap = {
coldfusion: "markup",
csharp: "javascript",
css: "css",
@thomashw
thomashw / Trie.java
Created February 20, 2012 00:47
Example of implementing a trie. Includes inserting and searching the trie (deletion not included.)
import java.io.*;
public class Trie
{
private TrieNode root;
public Trie()
{
root = new TrieNode( ' ' );
}