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
| initial begin | |
| int fd, ret; | |
| string line; | |
| int type_no, size; | |
| bit [31:0] addr; | |
| bit [7:0] data []; // dynamic array | |
| fd = $fopen("./hexfile", "r"); |
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
| Dim webBmp As Bitmap | |
| Using wc = New WebClient | |
| webBmp = New Bitmap(wc.OpenRead(url)) | |
| End Using |
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
| Dim wallBmp = New Bitmap(System.IO.Path.Combine(Server.MapPath("./"), "wallpaper.png")) |
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
| Response.ContentType = "image/png" | |
| Response.Flush() | |
| outBmp.Save(Response.OutputStream, Imaging.ImageFormat.Png) | |
| Response.End() |
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
| Dim dst = New Rectangle(754, 18, 1110, 807) ' 描画先の位置・大きさ | |
| Dim src = New Rectangle(0, 0, webBmp.Width, webBmp.Height) ' 参照画像の位置・大きさ | |
| If dst.Width / dst.Height < webBmp.Width / webBmp.Height Then | |
| Dim w = dst.Width / (dst.Height / webBmp.Height) | |
| src.X = Convert.ToInt32((webBmp.Width - w) / 2) | |
| src.Width = Convert.ToInt32(w) | |
| Else | |
| Dim h = dst.Height / (dst.Width / webBmp.Width) | |
| src.Y = Convert.ToInt32((webBmp.Height - h) / 2) |
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
| <%@ Page Language="vb" AutoEventWireup="false" CodeFile="Default.aspx.vb" Inherits="GeneratorWebForm" %> |
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
| Dim q = Context.Request.QueryString.Get("q") | |
| If Not Uri.IsWellFormedUriString(q, UriKind.Absolute) Then | |
| Exit Sub | |
| End If | |
| Dim url = New Uri(q) |
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
| .panel { | |
| background: url('http://pronama.azurewebsites.net/chrome/sd_eye0.png') no-repeat; | |
| background-size: contain; | |
| background-position: 10px -5px; | |
| } |
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" ?> | |
| <configuration> | |
| <system.webServer> | |
| <staticContent> | |
| <remove fileExtension=".svg" /> | |
| <mimeMap fileExtension=".svg" mimeType="image/svg+xml" /> | |
| </staticContent> | |
| </system.webServer> | |
| </configuration> |
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
| AddType image/svg+xml svg |