This file contains 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
;;;; Proxy | |
(defun module/proxy () | |
"Set Proxy" | |
(defun set-work-proxy () | |
"Set your work proxy." | |
(interactive) | |
;; Set proxy configurations in emacs | |
(setq url-proxy-services | |
'(("no_proxy" . "^\\(localhost\\|127.0.0.1\\)") |
This file contains 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
#!/bin/bash | |
# ------------------------------------------------------------------ | |
# [Author] Title | |
# Description | |
# ------------------------------------------------------------------ | |
set -e | |
SUBJECT=some-unique-id |
This file contains 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
{ | |
"AWSTemplateFormatVersion" : "2010-09-09", | |
"Description" : "AWS Template to create a a VPC", | |
"Resources" : { | |
"VPC" : { | |
"Type" : "AWS::EC2::VPC", | |
"Properties" : { | |
"CidrBlock" : "10.0.0.0/16", |
This file contains 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
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
AWS_PRIVATE_KEY_PATH = 'mykey.pem' | |
AWS_ACCESS_KEY_ID = 'XXXYYYZZZ' | |
AWS_SECRET_KEY = 'XXXZZZZYYY' | |
awsboxes = [ | |
{ | |
:name => 'puppet', |
This file contains 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
/* | |
Copyright (c) 2003-2014, Troy D. Hanson http://troydhanson.github.com/uthash/ | |
All rights reserved. | |
Redistribution and use in source and binary forms, with or without | |
modification, are permitted provided that the following conditions are met: | |
* Redistributions of source code must retain the above copyright | |
notice, this list of conditions and the following disclaimer. |
This file contains 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
#ifndef _LIST_H | |
#define _LIST_H | |
#include <stddef.h> | |
/* | |
* Simple doubly linked list implementation. | |
* | |
* Some of the internal functions ("__xxx") are useful when | |
* manipulating whole lists rather than single entries, as | |
* sometimes we already know the next/prev entries and we can |
This file contains 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
disk=$1 | |
iso=$2 | |
primary="$disk"1 | |
if [ -z $disk ] | |
then | |
echo "Specify a correct drive name" | |
exit | |
fi | |
if [ -z $iso ] |
This file contains 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
List<WebElement> options = driver.findElements(By.cssSelector("xxx")); | |
for (Iterator<WebElement> iterator = options.iterator(); iterator.hasNext();) { | |
WebElement webElement = (WebElement) iterator.next(); | |
try | |
{ | |
if (webElement.findElement(By.cssSelector("k-item")).getText().equals("Processing")) | |
{ | |
webElement.findElement(By.cssSelector("k-item")).click(); | |
webElement.findElement(By.cssSelector("k-icon")).click(); |
This file contains 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
#include <iostream> | |
#include <vector> | |
#include <unordered_map> | |
#include <unordered_set> | |
#include <algorithm> | |
#include <stdexcept> | |
#include <iterator> | |
#include <queue> | |
#include <stack> |
This file contains 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
#include <iostream> | |
#include <vector> | |
using namespace std; | |
template <class T> class TreeTraversal; | |
template <class T> | |
class TreeNode | |
{ | |
public: |
NewerOlder