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
dummy |
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
D:\Users\taku>powershell -ExecutionPolicy RemoteSigned | |
Windows PowerShell | |
Copyright (C) 2009 Microsoft Corporation. All rights reserved. | |
PS D:\Users\taku> Get-ExecutionPolicy | |
RemoteSigned |
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
$ mysqld --initialize-insecure --user=taku --basedir=/usr/local/Cellar/mysql/5.7.10 --datadir=/usr/local/var/mysql --tmpdir=/tmp --explicit_defaults_for_timestamp | |
2016-01-12T11:35:11.104978Z 0 [Warning] Setting lower_case_table_names=2 because file system for /usr/local/var/mysql/ is case insensitive | |
100 | |
100 | |
2016-01-12T11:35:27.326652Z 0 [Warning] InnoDB: New log files created, LSN=45790 | |
2016-01-12T11:35:28.053387Z 0 [Warning] InnoDB: Creating foreign key constraint system tables. | |
2016-01-12T11:35:28.110798Z 0 [ERROR] unknown variable 'innodb_additional_mem_pool_size=16M' | |
2016-01-12T11:35:28.110818Z 0 [ERROR] Aborting |
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 MyComponent = React.createClass({ | |
getInitialState() { | |
return { | |
newTodo: "" | |
}; | |
} | |
}); |
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
'use strict'; | |
let nconf = require('nconf').file({file: getUserHome() + '/sound-machine-config.json'}); | |
function saveSettings(settingKey, settingValue) { | |
nconf.set(settingKey, settingValue); | |
nconf.save(); | |
} | |
function readSettings(settingKey) { |
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
#!/usr/bin/env ruby | |
require "./normalizer" | |
input_file = ARGV[0] | |
write_file = ARGV[1] | |
generate_normalized_file(input_file, write_file) |
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
// Hacking with Swiftオリジナルのコード | |
// from https://www.hackingwithswift.com/read/4/3/choosing-a-website-uialertcontroller | |
func openPage(action: UIAlertAction!) { | |
let url = NSURL(string: "https://" + action.title!)! | |
webView.loadRequest(NSURLRequest(URL: url)) | |
} | |
// if letを使って書きかえてみたコード | |
func openPage(action: UIAlertAction!){ | |
if let title = action.title, let url = NSURL(string: "https://" + title) { |
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
settings |
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 gulp = require('gulp'); | |
var gutil = require('gulp-util'); | |
var sass = require('gulp-sass'); | |
var source = require('vinyl-source-stream'); | |
var babelify = require('babelify'); | |
var watchify = require('watchify'); | |
var exorcist = require('exorcist'); | |
var browserify = require('browserify'); | |
var browserSync = require('browser-sync').create(); |
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 gulp = require("gulp"); | |
var slim = require("gulp-slim"); | |
var browserSync = require("browser-sync"); | |
gulp.task('slim', function(){ | |
gulp.src("./*.slim") | |
.pipe(slim({ | |
pretty: true | |
})) | |
.pipe(gulp.dest("./output/")); |