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
import groovy.util.AntBuilder; | |
import groovy.grape.Grape | |
Grape.grab(group:"org.apache.ant", module:"ant-jsch", version:"1.8.1", classLoader:this.class.classLoader.rootLoader) | |
Grape.grab(group:"com.jcraft", module:"jsch", version:"0.1.42", classLoader:this.class.classLoader.rootLoader) | |
def ant = new AntBuilder(); | |
ant.scp( | |
trust:"true", | |
file:"vignesh@localhost:/home/vignesh/Documents/files/file.txt", | |
todir:"/home/vignesh/Documents", |
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
(function() { | |
/*if (window.location.hostname != 'news.ycombinator.com') { | |
window.location = 'http://news.ycombinator.com'; | |
}*/ | |
if (window.HNCOLLAPSE) { | |
window.HNCOLLAPSE = false; | |
} | |
else{ | |
window.HNCOLLAPSE = true; |
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
module Jekyll | |
class ImageListGenerator < Generator | |
def generate(site) | |
imagemap = {} | |
imagearr = [] | |
dir = "" | |
#create a dir and image map | |
Dir.glob(File.join(site.source,'_images/**/*')).each {|f| | |
if File.directory?(f) then |
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
{% for img_dir in site.imagemap %} | |
{% if img_dir.size > 0 %} | |
{% assign img_category_arr = (img_dir[0] | split: '-') %} | |
{% assign img_category = img_category_arr[1] %} | |
{% for img_item in img_dir[1]%} | |
{% if img_item contains 'main' %} | |
{% assign img_path = (img_dir[0]|append: '/'|append: img_item) %} | |
{% picture {{img_path}} data-category="{{img_category}}" data-index="{{forloop.index0}}" %} | |
{% endif %} | |
{% endfor %} |
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
/** | |
* @jsx React.DOM | |
*/ | |
// Parent | |
var React = require('react'), | |
BlockItemView = require('./BlockItemView.jsx'); | |
module.exports = BlockView = React.createClass({displayName: 'BlockView', |
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
#### `Always open requests in new tab` option = **ON** | |
Tabs opened | Tab focus | I want to open a ... | Click<br/>(Current behavior) | Double-Click<br/>(Current behavior) | Cmd/Ctrl+Shift+Click<br/>(Current behavior) | Click<br/>(Expected behavior) | Double-Click<br/>(Expected behavior) | Cmd/Ctrl+Shift+Click<br/>(Expected behavior) | |
--- | --- | --- | --- | --- | --- | --- | --- | --- | |
New Tab (blank) | New Tab (blank) | Saved request | Replaces the blank tab | Replaces the blank tab and opens a second tab **[BUG]** | Opens a second tab with the saved request | Replaces the blank tab | Replaces the blank tab | Opens a second tab with the saved request | |
New Tab (dirty) | New Tab (dirty) | Saved request | Replaces the unsaved tab losing all the work without any warning **[BUG]** | Replaces the unsaved tab losing a |