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: utf8 * | |
''' | |
args.py | |
A module that contains sample code to get params | |
''' | |
import sys |
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: utf8 * | |
''' | |
test.py | |
A module that tests inserting and joining records | |
''' | |
import arcpy | |
from os.path import basename |
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
atom.commands.add('atom-text-editor', 'custom:remove-debug', () => { | |
const editor = atom.workspace.getActiveTextEditor(); | |
const range = editor.getBuffer().getRange(); | |
const checkpoint = editor.createCheckpoint(); | |
const regex = new RegExp(/\s*from nose.tools import set_trace\s*set_trace\(\)$|\s*import pdb;?\s*pdb.set_trace\(\)$/, 'gmi'); | |
editor.backwardsScanInBufferRange(regex, range, (iterator) => { | |
iterator.replace(''); | |
}); |
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
* | |
*\**/** | |
!src/app/ | |
src/app/**/*.css | |
!src/ChangeLog.html | |
!src/index.html | |
!profiles/ | |
!.github/ | |
!.gitignore | |
!_SpecRunner.html |
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
using System.IO; | |
using System.Xml.Linq; | |
using System.Xml.XPath; | |
using System.Diagnostics; | |
//version could probably come from REPL input or something | |
string version = "1.9.1"; | |
/* bunch of file and folder moving around */ |
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
<Project DefaultTargets="UpdateSOE" ...> | |
<Target Name="UpdateSOE" DependsOnTargets="Build"> | |
<!-- Python needs to be in the path --> | |
<Exec Command="python $(MSBuildProjectDirectory)\PostBuildEvents\Runner.py"/> | |
</Target> | |
</Project> |
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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Web.Http; | |
public static class ModelStateDictionaryExtensions | |
{ | |
public static IEnumerable<string> ToErrors(this ModelStateDictionary dict) | |
{ | |
return dict.OrderBy(kvp => kvp.Key) |
NewerOlder