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
/// <reference path="./renderer/abstract.ts" /> | |
declare module "defaults.json" { | |
type ConfigFile = import("./renderer/abstract").ConfigFile | |
export default ConfigFile | |
} |
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
# Powershell post-commit hook. Can be used with Tortoise SVN as a | |
# client side hook using: | |
# powershell.exe C:\path\to\postcommit.ps1 <JenkinsJob> <AuthToken> <JenkinsUser> <APIToken> | |
# | |
# You may need to bypass the Execution Policy (default is Restricted): | |
# | |
# powershell.exe -ExecutionPolicy Bypass C:\path\to\postcommit.ps1 ... | |
# | |
# JenkinsJob is the job name | |
# AuthToken is set in job Build Triggers |
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
;; ACK/NACK a rabbitmq message. | |
;; Construct a frame as per the STOMP 1.1 spec: | |
;; https://stomp.github.io/stomp-specification-1.1.html#ACK | |
;; | |
;; Used for reference: | |
;; https://github.com/easternbloc/node-stomp-client/blob/master/lib/client.js | |
(ns cljs-node-stomp.queue | |
(:require [cljs.nodejs :as node])) |
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 argparse) | |
(defn my-func | |
[] | |
(let [[desc "My App"] | |
[parser ((. argparse ArgumentParser) :description desc)]] | |
(. parser parse-args))) |
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
<?php | |
class WsseHeader | |
{ | |
const NS_WSSE = 'http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd'; | |
const NS_WSSEPSWD = 'http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText'; | |
public function build($username, $password) | |
{ | |
$header = sprintf( |
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"?> | |
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="urn:xxx" xmlns:ns2="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:ns3="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText"> | |
<SOAP-ENV:Header> | |
<ns2:Security SOAP-ENV:mustUnderstand="1"> | |
<ns2:UsernameToken> | |
<ns2:Username>username</ns2:Username> | |
<ns3:Password>password</ns3:Password> | |
</ns2:UsernameToken> | |
</ns2:Security> | |
</SOAP-ENV:Header> |
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
<?php | |
$url = 'http://chalk.coas.unf.edu/eureka/files/templates/tmpl_chm.xml'; | |
$xml = file_get_contents($url); | |
echo "---- Expected ----" . PHP_EOL; | |
echo $xml . PHP_EOL; | |
echo "Length: " . strlen($xml) . PHP_EOL; | |
$simpleXml = simplexml_load_file($url); | |
$sXml = $simpleXml->asXML(); |
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
<?php | |
/** | |
* Not my most graceful code, in fact this doesn't represent | |
* my coding style at all really but it serves a purpose and | |
* enabled me to backup 62 pages of tweets (1,223). | |
* | |
* Don't forget to change the username before you back up my | |
* feed by mistake :) | |
*/ |