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
var result = XDocument.Load("http://docs.curthitch.biz/API/GetPart?partID=11000").Descendants().Descendants("Images").Where(x => x.Name.Equals("a")).ToList(); | |
result.Dump(); |
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
/** | |
* | |
*/ | |
package curt.android.ginger.Part; | |
import java.util.Iterator; | |
import java.util.List; | |
import android.app.Activity; | |
import android.graphics.Typeface; |
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
package hello | |
import ( | |
"html/template" | |
"net/http" | |
"fmt" | |
) | |
func init() { | |
http.HandleFunc("/", hello) |
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
package main | |
import ( | |
"encoding/csv" | |
"net/http" | |
"html/template" | |
"fmt" | |
"strconv" | |
) |
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
func (t Template) DisplayMultiple(templates []string) { | |
if t.Layout == "" { | |
t.Layout = "layout.html" | |
} | |
log.Println(templates) | |
if t.Bag == nil { | |
t.Bag = make(map[string]interface{}) | |
} | |
templ := template.Must(template.ParseFiles(t.Layout)) |
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
{{with .Homepage}} | |
{{template "content" .}} | |
{{else}} | |
{{with .Sidebar}} | |
<div class="span2 sidebar well"> | |
{{template "sidebar" .}} | |
</div> | |
<div class="span10 well"> | |
{{else}} | |
<div class="span12 well"> |
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
public class IndexController : Controller { | |
public void Index() { | |
string form_value = "Change"; | |
Item i = new Item(); | |
i.MaterialCode = (MatCode)Enum.Parse(typeof(MatCode), form_value); | |
} | |
} | |
public class Item { | |
public MatCode MaterialCode = new MatCode(); |
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
wget --recursive --page-requisites --html-extension --convert-links --domains hitchinfo.com --restrict-file-names=windows --no-clobber www.hitchinfo.com |
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
prices, _ := pricing.Get(r) | |
var buf bytes.Buffer | |
buf.WriteString("CURT Part ID,Customer Part ID, Price, Sale Start, Sale End\n") | |
for i := 0; i < len(prices)-1; i++ { | |
price := prices[i] | |
var priceBuf bytes.Buffer | |
priceBuf.WriteString(strconv.Itoa(price.PartID)) | |
priceBuf.WriteByte(',') |
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; | |
using System.Web.Http; | |
using System.Web.Mvc; | |
using System.Web.Optimization; | |
using System.Web.Routing; | |
namespace API { |
OlderNewer