Skip to content

Instantly share code, notes, and snippets.

SNew(SListView< FString* >)
.ItemHeight(24)
.ListItemsSource( &Items )
// Need to learn how to use OnGenerateRow
.OnGenerateRow(this, &SGameUIComposition::OnGenerateRowForList)
.HeaderRow
(
SNew(SHeaderRow)
+ SHeaderRow::Column("Skill").DefaultLabel(FText::FromString("Skill"))
)
FSlateColor SStrategySlateHUDWidget::GetOverlayColor() const
{
const FStrategyHUDSoundsStyle& HUDSounds = FStrategyStyle::Get().GetWidgetStyle<FStrategyHUDSoundsStyle>("DefaultStrategyHUDSoundsStyle");
FLinearColor Result(0,0,0,0.3f);
const float PosExiting = FMath::Max(MenuHelper::GetSoundPlaybackPosition(OwnerHUD->PlayerOwner->GetWorld(),HUDSounds.ExitGameSound,this, &SStrategySlateHUDWidget::ExitGame),
MenuHelper::GetSoundPlaybackPosition(OwnerHUD->PlayerOwner->GetWorld(),HUDSounds.ExitGameSound,this, &SStrategySlateHUDWidget::ReturnToMainMenu));
Result.A = 0.3f + 0.7f * PosExiting;
if (PosExiting > 0.95f)
{
<?php
include("lib/Iugu.php");
// Iugu::setApiKey("6de701b310dd429546d35ee54f195d67");
class Ts_Iugu_ChurnRate extends APIResource {
public static function last30Days() {
$url = Iugu::getBaseURI() . "/accounts/last_30_days_churn_rate";
$response = self::API()->request(
"GET",
# cities = City.create([{ name: 'Chicago' }, { name: 'Copenhagen' }])
# Mayor.create(name: 'Emanuel', city: cities.first)
class ApplicationController < ActionController::Base
# Prevent CSRF attacks by raising an exception.
# For APIs, you may want to use :null_session instead.
protect_from_forgery with: :exception
end
@pnegri
pnegri / gist:369023b203de25301c88
Created May 5, 2014 01:34
Fishing Script - Test
global.SkillTypes.FISHING = 100
onUse = ( goObject, goPlayer ) ->
if CheckSkill( goPlayer, SkillTypes.FISHING, 0, 1000 )
SystemMessage "You catch a fish"
else
SystemMessage "You failed to catch a fish"
upstream platform {
server unix:/tmp/unicorn.platform.sock fail_timeout=0;
server unix:/tmp/unicorn.platform.sock fail_timeout=0;
server unix:/tmp/unicorn.platform.sock fail_timeout=0;
}
[WindowsNoEditor DeviceProfile]
CVars=r.PostProcessAAQuality=1
CVars=sg.ShadowQuality=2
CVars=sg.TextureQuality=3
CVars=sg.EffectsQuality=2
CVars=r.screenPercentage=-1
CVars=r.DetailMode=2
1>------ Skipped Build: Project: DotNETUtilities, Configuration: Development Any CPU ------
1>Project not selected to build for this solution configuration
2>------ Skipped Build: Project: DeploymentInterface, Configuration: Development Any CPU ------
2>Project not selected to build for this solution configuration
3>------ Skipped Build: Project: MobileDeviceInterface, Configuration: Development Any CPU ------
3>Project not selected to build for this solution configuration
4>------ Skipped Build: Project: AutomationToolLauncher, Configuration: Development Any CPU ------
4>Project not selected to build for this solution configuration
5>------ Skipped Build: Project: Distill, Configuration: Development Any CPU ------
5>Project not selected to build for this solution configuration
using UnrealBuildTool;
using System.Collections.Generic;
public class NetherdeepServerTarget : TargetRules
{
public NetherdeepServerTarget(TargetInfo Target)
{
Type = TargetType.Server;
bUsesSteam = true;
}