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
{ "label": "post", | |
"properties": | |
{ | |
"title":"Use LIST properties on IBM GraphDB", | |
"text": "This is how you do it" | |
} | |
} |
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
// This application uses express as its web server | |
// for more info, see: http://expressjs.com | |
var express = require('express'); | |
const path = require('path') | |
// create a new express server | |
var app = express(); | |
// serve the files out of ./public as our main files |
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
var insertGreeting = function(Reader) { | |
if(Reader.isNew()) { | |
return ( | |
"Hi, my name's Hamilton. I'm entering my last " + | |
"semester at Georgia Tech where I'm majoring in " + | |
"Computer Science. For the past year, I've made " + | |
"it a habit to publish my accomplishments and " + | |
"aspirations at the end of each semester. I use " + | |
"it, primarily, to track my progress with respect " + | |
"to my short-term goals and long-term growth. " + |
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
<div>{"<"} Less than, {">"} greater than </div> |
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.Collections.Generic; | |
using System.IdentityModel.Tokens.Jwt; | |
using System.Security.Claims; | |
using System.Linq | |
using System.Text; | |
using Microsoft.IdentityModel.Tokens; | |
public class JwtTokenCreator | |
{ | |
private readonly JwtSecurityTokenHandler _jwtSecurityTokenHandler; |
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
var minNumberOfOccurrencesToPrint = 3; // Min number of occurrences you care about | |
var documentHtml = document.documentElement.outerHTML; // Grab HTML | |
var occurrences = (documentHtml.match(/YourRegexGoesHere/g) || []); // Search page for occurrences, use regexpal.com to test your regex | |
var wordCounter = {}; | |
for (let match of occurrences) { | |
if(match in wordCounter) { | |
wordCounter[match] += 1; | |
} else { | |
wordCounter[match] = 1; |
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
// readPath goes here | |
const string licenseCsvPath = @"C:\some\path"; | |
// writePath goes here | |
const string writeSqlpath = @"C:\some\path"; | |
var sqlString = new StringBuilder(); | |
sqlString.Append( | |
@"INSERT INTO dbo.myTable |
OlderNewer