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
#include "BasicAttributeSet.h" | |
#include "GameplayEffect.h" | |
#include "GameplayEffectExtension.h" | |
void UBasicAttributeSet::PostGameplayEffectExecute(const struct FGameplayEffectModCallbackData& Data) | |
{ | |
Super::PostGameplayEffectExecute(Data); | |
//Clamping Health based on Max Health. |
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
## From Marcus Motill https://medium.com/millennial-falcon-technology/reformatting-your-code-base-using-prettier-or-eslint-without-destroying-git-history-35052f3d853e | |
git filter-branch --tree-filter '\ | |
prettier --no-config --single-quote --tab-width=4\ | |
--print-width=128 --arrow-parens=always --trailing-comma=all\ | |
--write "**/**.ts" "**/**.html" || \ | |
echo “Error formatting, possibly invalid JS“' -- --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
import * as moment from 'moment'; | |
declare module 'moment' { | |
interface Duration { | |
humanizeLong(): string; | |
} | |
} | |
(moment.duration as any).fn.humanizeLong = function (): string { |
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
// usage: | |
// node diamond.js 8 | |
// | |
const length = parseInt(process.argv.slice(2)[0]); | |
const char = '*'; | |
const space = ' '; | |
const newLine = '\n'; | |
const TWO = 2; | |
var charCount = 1; |
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
export class TreeNode { | |
label : any; | |
data : any; | |
nodes : TreeNode[]; | |
constructor(label : any) { | |
this.label = label; | |
this.nodes = []; | |
} |
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 async deleteCompany(req: Request, res: Response, next: NextFunction) { | |
try { | |
let test = await this.service.delete(req.body.id); | |
res.status(200).json({}); | |
} catch(error) { | |
res.status(400).json(error); | |
} | |
} | |
public async delete(id : number) : Promise<any> { |
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
// | |
// iQStepper.h | |
// iqStepper | |
// | |
// Created by Kyle Smyth on 2015-12-11. | |
// | |
#import <UIKit/UIKit.h> | |
IB_DESIGNABLE |
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
var googleUrl = NSURL(string: "http://google.ca") | |
var request = NSMutableURLRequest(URL: googleUrl) | |
request.HTTPMethod = "GET" | |
request.addValue("text/html", forHTTPHeaderField: "Content-Type") | |
var session = NSURLSession.sharedSession() | |
let task = session.dataTaskWithRequest(request, completionHandler: {data, response, error -> Void in | |
if((error) != nil) { |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<scheme name="kyle-custom" version="124" parent_scheme="Default"> | |
<option name="LINE_SPACING" value="1.0" /> | |
<option name="EDITOR_FONT_SIZE" value="14" /> | |
<option name="EDITOR_FONT_NAME" value="Consolas" /> | |
<colors> | |
<option name="CARET_ROW_COLOR" value="d8d8d8" /> | |
<option name="GUTTER_BACKGROUND" value="ffffff" /> | |
<option name="INDENT_GUIDE" value="d8d8d8" /> | |
<option name="LINE_NUMBERS_COLOR" value="d8d8d8" /> |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<scheme name="ColourBlindCoder" version="124" parent_scheme="Default"> | |
<option name="LINE_SPACING" value="1.0" /> | |
<option name="EDITOR_FONT_SIZE" value="14" /> | |
<option name="EDITOR_FONT_NAME" value="Consolas" /> | |
<colors> | |
<option name="CARET_ROW_COLOR" value="d8d8d8" /> | |
<option name="GUTTER_BACKGROUND" value="ffffff" /> | |
<option name="INDENT_GUIDE" value="d8d8d8" /> | |
<option name="LINE_NUMBERS_COLOR" value="d8d8d8" /> |
NewerOlder