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
| #include <cmath> | |
| #include <memory> | |
| #include <numeric> | |
| #include <string> | |
| #include <vector> | |
| typedef std::auto_ptr<std::vector<std::string> > token_collection_t; | |
| token_collection_t tokenize(const std::string &s, const char token = ',') | |
| { |
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
| $env:14hive = 'C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14' | |
| if ((Get-PSSnapin -Name Microsoft.SharePoint.PowerShell -ErrorAction SilentlyContinue) -eq $null) | |
| { | |
| Add-PSSnapin -Name Microsoft.SharePoint.PowerShell | |
| } |
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
| <?xml version="1.0" encoding="utf-8"?> | |
| <Elements xmlns="http://schemas.microsoft.com/sharepoint/"> | |
| <ListInstance Title="Stations" | |
| OnQuickLaunch="TRUE" | |
| TemplateType="10001" | |
| Url="Lists/Stations" | |
| Description="The canonical list of stations."> | |
| <Data> | |
| <Rows> | |
| <Row> |
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
| gci -recurse |% { [System.IO.Path]::GetExtension($_.Name) } |? {$_ -notmatch "^\s*$"} | select -unique |
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
| @interface classname { | |
| ShareKitItem *item; | |
| } | |
| @end | |
| @implementation classname | |
| - (id)init | |
| { | |
| item = [[[ShareKitItem allocate] init] autorelease]; | |
| } |
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
| echo "majorMinor=`/usr/libexec/PlistBuddy -c \"Print :CFBundleVersion\" \"${PROJECT_DIR}/${PROJECT_NAME}-Info.plist\"`" | |
| majorMinor=`/usr/libexec/PlistBuddy -c "Print :CFBundleVersion" "${PROJECT_DIR}/${PROJECT_NAME}-Info.plist"` | |
| echo "build=`git describe --match ${majorMinor}* --tags --dirty=+ | sed \"s/\(${majorMinor}\)\(.*\)/\2/\"`" | |
| build=`git describe --match ${majorMinor}* --tags --dirty=+ | sed "s/\(${majorMinor}\)\(.*\)/\2/"` | |
| echo "/usr/libexec/PlistBuddy -c \"Set :CFBundleVersion ${majorMinor}.${build}\" \"${TARGET_BUILD_DIR}/${INFOPLIST_PATH}\"" | |
| /usr/libexec/PlistBuddy -c "Set :CFBundleVersion ${majorMinor}.${build}" "${TARGET_BUILD_DIR}/${INFOPLIST_PATH}" |
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
| ls -recurse -filter feature.xml | select-xml "//*[local-name()='Feature']" | ft @{Label="Name";Expression={$_.Node.Title}}, @{Label="ID";Expression={$_.Node.Id}} |
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
| package aexp.customadapter; | |
| import android.content.Context; | |
| import android.graphics.Color; | |
| import android.view.View; | |
| import android.view.ViewGroup; | |
| import android.widget.LinearLayout; | |
| import android.widget.TextView; | |
| import android.widget.BaseAdapter; | |
| import android.widget.ImageView; |
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
| from django.utils import simplejson as json | |
| from google.appengine.ext import db | |
| class GaeEncoder(json.JSONEncoder): | |
| def default(self, obj): | |
| if isinstance(obj, db.Model): | |
| output = {} | |
| for key, prop in obj.properties().iteritems(): | |
| if isinstance(prop, db.ListProperty) and prop.item_type == db.Key: | |
| output[key] = [ db.get(k) for k in getattr(obj, key) ] |
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
| application: bt-coronet | |
| version: 1 | |
| runtime: python | |
| api_version: 1 | |
| handlers: | |
| - url: /s | |
| static_dir: static | |
| - url: /favicon.ico |