Summary | One example for embed javascript into windows bat file without any external tools or files. |
Env | windows node.js jscript |
Summary | Simple login form using angular.js and Foundation. |
Env | angular-js Foundation |
Note | Sample codes written using jsbin |
Summary | jQuery $ajax sample or snippet |
Env | jQuery |
Summary | Find the path from PATH env vars which includes string you specified. |
Env | win babel-node |
Summary | How to control (or Understand) your GIST page's files list order. |
Notice | not official documentation. |
this is currently experimental
Summary | Shabang.bat allow you to embed your script in bat file. Only put #!.bat . |
You can write single script file and #!.bat doesn't create any filein your %temp% to run script |
|
Env | Windows and ( node.js or python or ... ) |
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 lang="en"> | |
<meta charset="UTF-8"> | |
<title></title> | |
<link rel="stylesheet" href="bower_components/mocha/mocha.css"/> | |
<script src="bower_components/mocha/mocha.js"></script> | |
<script src="node_modules/babel-core/browser.js"></script> | |
<script src="bower_components/chai/chai.js"></script> | |
<script src="bower_components/lodash/lodash.js"></script> |
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 = angular.module('app',[]); | |
app.directive('compileBold', function($compile){ | |
return{ | |
restrict: 'E', | |
link: function(scope, element, attr){ | |
console.log(element.html()); | |
element.html('<b>bold text</b>'); | |
$compile(element.contents())(scope); | |
} |
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
using System; | |
using System.IO; | |
using System.Linq; | |
using System.Net; | |
using System.Text; | |
using System.Windows.Forms; | |
namespace PostDataWithFlask { | |
public partial class Form1 : Form { | |
public Form1() { |
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 drawBalls(){ | |
// 描画しているだけ | |
var BALL = 4, R = 4, W=100, H=100; | |
var canvas = document.querySelector("#canvas"); | |
var ctx = canvas.getContext("2d"); | |
canvas.addEventListener("contextmenu", function(e){e.preventDefault(); clear();}); | |
ctx.globalCompositeOperation = "source-over"; | |
for(var i = 0; i < BALL; i++){ |
OlderNewer