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
$(function() { | |
$('img').each(function(){ | |
this.src = "http://foodtero.azurewebsites.net/api/?url=" + encodeURIComponent(this.src); | |
}); | |
}); |
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
Imports System.Drawing | |
Imports System.Net | |
Imports Microsoft.ProjectOxford.Vision | |
Public Class ApiController | |
Inherits System.Web.Mvc.Controller | |
Async Function Index(url As String) As Threading.Tasks.Task(Of ActionResult) | |
If url Is Nothing Then | |
Return New HttpStatusCodeResult(HttpStatusCode.BadRequest) |
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 client = New VisionServiceClient("**key**") | |
Dim result = Await client.AnalyzeImageAsync("画像 URL") ' 画像の Stream も指定可能 | |
If result.Categories IsNot Nothing AndAlso result.Categories.Any AndAlso | |
result.Categories.First.Name.StartsWith("food_") Then | |
' (画像のカテゴリーが食べ物の場合) | |
End If |
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
var faces = await App.Instance.DetectAsync(fileStream, false, true, true, false); |
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
.monaco-editor.vs-dark, | |
.monaco-editor.vs-dark .zone-widget .monaco-editor, | |
.monaco-editor.vs-dark .lines-content.monaco-editor-background { | |
color: #BBB; | |
background: #1E1E1E; | |
background: url('http://pronama.jp/code/sd.png') no-repeat; | |
background-position: right bottom; | |
} |
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
app.setUserTasks([ | |
{ | |
program: process.execPath, | |
arguments: '--new-window', | |
iconPath: process.execPath, | |
iconIndex: 0, | |
title: 'New Window', | |
description: 'Create a new winodw', | |
} | |
]); |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Hello World!</title> | |
</head> | |
<body> | |
<h1>Hello World!</h1> | |
We are using io.js <script>document.write(process.version)</script> | |
and Electron <script>document.write(process.versions['electron'])</script>. | |
</body> |
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
var app = require('app'); // Module to control application life. | |
var BrowserWindow = require('browser-window'); // Module to create native browser window. | |
// Report crashes to our server. | |
require('crash-reporter').start(); | |
// Keep a global reference of the window object, if you don't, the window will | |
// be closed automatically when the javascript object is GCed. | |
var mainWindow = null; |
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
{ | |
"name" : "your-app", | |
"version" : "0.1.0", | |
"main" : "main.js" | |
} |
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
.telop { | |
font-size: 24px; | |
font-weight: bold; | |
display: inline-block; | |
position: relative; | |
background: linear-gradient(to right, #000 0,#000 0px,#ffffff 0px,#ffffff 100%); | |
-webkit-background-clip: text; | |
-moz-background-clip: text; | |
background-clip: text; | |
-webkit-text-fill-color: transparent; |