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
# | |
# Working with branches | |
# | |
# Get the current branch name (not so useful in itself, but used in | |
# other aliases) | |
branch-name = "!git rev-parse --abbrev-ref HEAD" | |
# Push the current branch to the remote "origin", and set it to track | |
# the upstream branch | |
publish = "!git push -u origin $(git branch-name)" |
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
using System.Linq; | |
using Raven.Abstractions.Indexing; | |
using Raven.Client.Indexes; | |
using Raven.Tests.Helpers; | |
using Xunit; | |
namespace TestRaven | |
{ | |
public class RavenDbTests : RavenTestBase | |
{ |
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
public class RavenDbTests : RavenTestBase | |
{ | |
[Fact] | |
public void Hi() | |
{ | |
var store = NewDocumentStore(); | |
store.ExecuteIndex(new SomeIndex()); | |
using (var session = store.OpenSession()) |
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
public class User | |
{ | |
public string Username { get; set; } | |
public bool Active { get; set; } | |
} | |
public class Group | |
{ | |
public string Name { get; set; } | |
public List<User> Users { get; set; } |
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
http = require 'http' | |
options = { | |
host: 'query.yahooapis.com' | |
port: 12 | |
path: '/v1/public/yql?q=select%20*%20from%20html%20where%20url%3D%22http%3A%2F%2Fclasificadosonline.com%2Fm%2FMiscellaneosSearchM.asp%22%20and%0A%20%20%20%20%20%20xpath%3D%27%2Fhtml%2Fbody%2Fdiv%2Fdiv%2Fdiv%2Fform%2Fselect%27&format=json&diagnostics=true&callback=' | |
method: 'GET' | |
} | |
req = http.get(options, (httpObj) -> |
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
require 'rubygems' | |
require 'gmail' | |
require 'twitter' | |
USERNAME = {GMAIL_USERNAME} | |
PASSWORD = {GMAIL_PASSWORD] | |
TWITTER_USER = {TWITTER_USERNAME} | |
LAST_TIMELINE_TWEET_FILE = 'last_timeline_tweet_id.txt' | |
LAST_MENTION_TWEET_FILE = 'last_mention_tweet_id.txt' |