This file contains hidden or 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
body { | |
} | |
.video { | |
width: 1080px; | |
height: 1920px; | |
margin: 10px auto; | |
display: flex; | |
align-items: center; | |
justify-content: space-around; |
This file contains hidden or 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
const ELEVATIONS = { | |
small: ` | |
0.5px 1px 1px hsl(var(--shadow-color) / 0.7) | |
`, | |
medium: ` | |
1px 2px 2px hsl(var(--shadow-color) / 0.333), | |
2px 4px 4px hsl(var(--shadow-color) / 0.333), | |
3px 6px 6px hsl(var(--shadow-color) / 0.333) | |
`, | |
large: ` |
This file contains hidden or 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
const Web3 = require('web3'); | |
var net = require('net'); | |
const provider = new Web3.providers.IpcProvider(process.env.HOME + '/node/jsonrpc.ipc', net); | |
// const nodeUrl = "http://127.0.0.1:8545"; | |
// const provider = new Web3.providers.HttpProvider(nodeUrl, { timeout: 300000 }); | |
const web3 = new Web3(provider); | |
require('dotenv').config(); | |
const { TIMES_TO_RUN, DELAY } = process.env; //TIMES_TO_RUN = 10000, DELAY = 1 | |
const PASSWORD = 'p4ss'; |
This file contains hidden or 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
0x188CfF641AbAAa262d3097C9b51134866247d6a7 |
This file contains hidden or 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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |
<html xmlns="http://www.w3.org/1999/xhtml"> | |
<head> | |
<title>Ace sample</title> | |
<script type="text/javascript" src="/_content/scripts/lib/ace/ace.js"></script> | |
<script type="text/javascript" src="/_content/scripts/lib/ace/ext-language_tools.js"></script> | |
<script type="text/javascript" src="/_content/scripts/lib/jquery-2.0.0.js"></script> | |
<script> | |
$(function() { |
This file contains hidden or 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 static class ModellessPartialExtension { | |
public static string Partial<THandler>(this IFubuPage page, string methodName) { | |
var factory = page.Get<IBehaviorFactory>(); | |
var writer = page.Get<IOutputWriter>(); | |
var graph = page.Get<BehaviorGraph>(); | |
var serviceArguments = page.Get<ServiceArguments>(); | |
return Partial<THandler>(methodName, factory, graph, serviceArguments, writer); | |
} | |
public static string Partial<THandler>(string methodName, IBehaviorFactory behaviorFactory, BehaviorGraph graph, ServiceArguments serviceArguments, IOutputWriter writer) { |
This file contains hidden or 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
ObjectFactory.Initialize(x => | |
{ | |
// ISessionFactory is expensive to initialize, so create it as a singleton. | |
x.For<ISessionFactory>() | |
.Singleton() | |
.Use(CreateSessionFactory()); | |
// Cache each ISession per web request. Remember to dispose this! | |
x.For<ISession>() | |
.HttpContextScoped() |
This file contains hidden or 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; | |
using System.IO; | |
using System.Net; | |
using System.Text; | |
using System.Web.Script.Serialization; | |
namespace Chpokk.Tests.GitHub.Infrastructure { | |
class Api { | |
public static void CommitFile(string path, string content) { | |
//post a new tree object with that file path pointer replaced with your new blob SHA getting a tree SHA back |
This file contains hidden or 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
static class ProjectChooser | |
{ | |
private static Project _webProject; | |
public static void FixOutputPath(this Project project) { | |
var webProject = project.DTE.Solution.FindWebProject(); | |
SetOutputPathTo(project, webProject); | |
} | |
public static void AddMvcReference(this Project project) { |
This file contains hidden or 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; | |
using System.Web; | |
using FubuDemo.Greetings; | |
using FubuMVC.Core; | |
using FubuMVC.Spark; | |
namespace FubuDemo { | |
public class ConfigureFubuMVC : FubuRegistry { | |
public ConfigureFubuMVC() { | |
// This line turns on the basic diagnostics and request tracing |