> mkdir g:\tmp\trial
> cd g:\tmp\trial
> dotnet --info
.NET Command Line Tools (2.0.2-vspre-006949)
Product Information:
Version: 2.0.2-vspre-006949
Commit SHA-1 hash: 23fc6ec23d
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
# -*- coding: utf-8 -*- | |
#!/usr/bin/env python2 | |
# usage: | |
# mkdir /tmp/trial | |
# git clone https://github.com/sushant354/indic2unicode | |
# sudo pacman -S python2-ply | |
# # copy the below code in /tmp/trial and save as convert.py | |
# cd /tmp/trial | |
# python2 convert.py input.txt output.txt |
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
// Demo a simple embedded python interpreter | |
// See this post for context: http://codito.in/notes-on-vim-python-interop | |
// | |
// Compile with: gcc $(python-config --cflags --ldflags) pyembed.c -o pyembed | |
// Tested on python 3.6 in arch linux | |
// | |
// See https://docs.python.org/3/c-api/init.html for details of APIs. | |
// | |
#include <Python.h> |
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
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
import sys | |
from PyQt5 import QtCore, QtDBus, QtWidgets | |
def notify(header, msg): | |
item = "org.freedesktop.Notifications" | |
path = "/org/freedesktop/Notifications" | |
interface = "org.freedesktop.Notifications" |
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
# -*- coding: utf-8 -*- | |
import CommonMark | |
if __name__ == "__main__": | |
with open("trial.md") as f: | |
parser = CommonMark.DocParser() | |
renderer = CommonMark.HTMLRenderer() | |
ast = parser.parse(f.read()) | |
html = renderer.render(ast) | |
json = CommonMark.ASTtoJSON(ast) |
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
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
# | |
# debug net http | |
require 'net/http' | |
module Net | |
class HTTP | |
def self.enable_debug! | |
#raise "You don't want to do this in anything but development mode!" unless Rails.env == 'development' | |
class << self |
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
# | |
# Script to update assembly bindings to support 3rd party test adapters in Visual Studio Test Platform | |
# Applies to VS 2014 CTP 3 bits | |
# Needs to run as Admin, please use it at your own risk | |
# | |
function Update-AssemblyBinding($configFile) | |
{ | |
Write-Host "Updating $configFile" | |
[xml] $config = Get-Content $configFile |
- Build Agent needs to run a physical x64 Windows 8.1 based machine to be able to run Phone emulators
- Setup build agent to run as an interactive process and enable it to run unit tests (obtain developer license). Check this MSDN page for more help on this.
- Install Visual Studio 2013 + Update 2 (with support for Phone development) on Build Agent
Once you have these, you can use custom scripts in TFS 2013 build definition to run phone tests using vstest.console command line. See the script RunPhoneTests.bat
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
--- | |
comtypes/__init__.py | 8 ++++++-- | |
comtypes/automation.py | 4 +++- | |
2 files changed, 9 insertions(+), 3 deletions(-) | |
diff --git a/comtypes/__init__.py b/comtypes/__init__.py | |
index 6590ead..fa604af 100644 | |
--- a/comtypes/__init__.py | |
+++ b/comtypes/__init__.py | |
@@ -268,7 +268,9 @@ class _cominterface_meta(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
#!/bin/bash | |
# Script to speak out GRE words, turn it on and sleep ;) | |
# Get wordlist from http://pastebin.com/JLQs9MT2 | |
#espeakcmd="espeak -g 1 -s 170 -a 150 -p 10 -v english-us" | |
espeakcmd="festival --tts" | |
shuf GREwordlist.txt | while read line | |
do | |
word=`echo $line | cut -f 1 -d " " -` | |
meaning=`echo $line | cut -f 2- -d " " -` |
NewerOlder