- Asset-level Permissions
- Address-level Permissions
- Asset actions
- Important interactions and distinctions
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
#!/usr/bin/env ruby | |
require 'optparse' | |
require 'date' | |
options = { | |
branch: '', | |
day: Date.today.day, | |
month: Date.today.month, | |
year: Date.today.year, |
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
class PrivatePubAuth | |
def initialize channel, secret | |
@config = { | |
timestamp: (Time.now.to_f * 1000).round, | |
secret_token: secret, | |
channel: channel | |
} | |
end | |
def outgoing(message, callback) |
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
// Basic usage: $(element).flicker(); | |
// By default it will animate the opacity of the element to make it flicker from visible to invisible | |
// The options are (the values shown are the defaults) | |
// { | |
// action: "start", // Can be "start" or "stop" | |
// wait: 650, // Time between animations | |
// cssProperty: "opacity" // Which css style animate. Will be used in jQuerys .css(). | |
// cssValue: "0" // Max value to use | |
// } | |
// |
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
// This file expects the specs to have the same name ending with '.spec.js' and to be in the same folder structure than the source | |
// Example: | |
// /app/assets/javascripts/models/todo.js | |
// /spec/javascripts/models/todo.spec.js | |
// It runs only the spec of the changed file or, if it's not found, runs the entire suite | |
module.exports = function(grunt) { | |
grunt.initConfig({ | |
jasmine: { | |
all: { |
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 CustomHtmlWriter: XmlTextWriter | |
{ | |
string openingElement = ""; | |
//The list could be simply a string, or whatever you need | |
List<string> fullyClosedElements = new List<string>(); | |
public CustomHtmlWriter(StringBuilder sb) : base(new StringWriter(sb)) | |
{ | |
//The Rest of the tags would be explicitely closed. |
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
<div class="parent"> | |
<div class="child"> | |
<h4 class="title">Title</h4> | |
</div> | |
<div class="Tag"><a href="#"> | |
some text | |
</a><a href="#"> | |
some text | |
</a><a href="#"> | |
some text |
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.Diagnostics; | |
public static class PerformanceManager | |
{ | |
static PerformanceCounter cpuCounter; | |
static PerformanceCounter ramCounter; | |
static PerformanceManager() | |
{ | |
cpuCounter = new PerformanceCounter(); |