Active Record マイグレーション | Railsガイド
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
pipeline { | |
agent any | |
environment { | |
SSH_USER = "ssh_user" | |
TARGET_HOST_AVAILABLE_DISK_SPACE="0" | |
} | |
stages { | |
stage('setting default value') { |
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
import random | |
import copy | |
def make_base(): | |
base = list(range(1, 11)) | |
return random.sample(base, len(base)) | |
def sort_bubble(base): |
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
<?php | |
$filterFunc = function($extParam) { | |
return function($param) use ($extParam) { | |
return ($param == $extParam); | |
}; | |
}; | |
$mapFunc = function($extParam) { | |
return function($param) use ($extParam) { |
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
import sys | |
import os | |
_input_delimiter = ',' | |
_export_delimiter = '\t' | |
param = sys.argv | |
if len(param) < 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
<?php | |
class File { | |
/** | |
* @param string $filePath | |
* @param array $sfoFlags | |
* @param string $delimiter | |
* @return array | |
*/ |
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> | |
<head> | |
<meta charset="UTF-8"> | |
<style type="text/css"> | |
#fooContainer { | |
position: absolute; | |
top: 50%; | |
left: 50%; | |
} |
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
#!/bin/bash | |
: << COMMENT | |
Dump MySQL table. | |
param1: destination host. | |
param2: database. | |
param3: table. | |
param4: dump condition. | |
COMMENT |
NewerOlder