- Cleaned up old branches
- Closed old and resolved issues (25+ issues closed)
- Labeled/Categorized issues
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
// zod schema | |
z.object({ | |
// valid if string or: | |
optional: z.string().optional(), // field not provided, or explicitly `undefined` | |
nullable: z.string().nullable(), // field explicitly `null` | |
nullish: z.string().nullish(), // field not provided, explicitly `null`, or explicitly `undefined` | |
}); | |
// type | |
{ |
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 { env } from "process"; | |
import * as Parser from "rss-parser"; | |
import slufigy from "slugify"; | |
import * as Contentful from "contentful-management"; | |
import { htmlToText } from "html-to-text"; | |
const client = Contentful.createClient({ | |
accessToken: env.ACCESS_TOKEN, | |
}); |
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
{ | |
"JobStatus": "SUCCEEDED", | |
"VideoMetadata": { | |
"Codec": "h264", | |
"DurationMillis": 14900, | |
"Format": "QuickTime / MOV", | |
"FrameRate": 30, | |
"FrameHeight": 576, | |
"FrameWidth": 320 | |
}, |
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 request = require('request'); | |
var lineReader = require('line-reader'); | |
var selection = 1; // <- the id of the person to vote for | |
lineReader.eachLine('proxy.txt', function(line, last) { | |
request.post({ | |
uri: 'http://jol.jamaicaobserver.com/mogul_poll/add_vote.php?the_vote='+selection, | |
proxy: 'http://'+ line | |
}, function (err, resp, body) {}); | |
}); |
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-Module Azure | |
Import-AzurePublishSettingsFile "C:\Certificate\Azure.publishsettings" | |
Write-Host "Swapping staging and production slots..." | |
Switch-AzureWebsiteSlot -Name "griklyapi" -Slot1 "production" -Slot2 "staging" -Force | |
Write-Host "Swap complete" |
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
[TestClass] | |
public class AccountsTests : TestBase | |
{ | |
[TestMethod] | |
public async Task Register_Returns_Successfull() | |
{ | |
var registerModel = new RegisterModel | |
{ | |
Email = Constants.USER_EMAIL, | |
FirstName = "Shawn", |
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
[TestClass] | |
public class TestBase | |
{ | |
private static TestServer server; | |
public static TestServer Server | |
{ | |
get { return server; } | |
} |
NewerOlder