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
| ' ディレクトリ内のファイルを列挙 | |
| Sub CreateImgAlbum() | |
| y = 3 | |
| ' A1セルからディレクトリパス取得 | |
| root_dir = ActiveSheet.Cells(1, 1).Value | |
| y = SearchDir(root_dir, y, root_dir) | |
| Rows(5).EntireColumn.AutoFit | |
| Cells(y, 1).ColumnWidth = 5 | |
| MsgBox "OK!!" |
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
| Begin Object Class=K2Node_Event Name="K2Node_Event_194" | |
| Begin Object Class=EdGraphPin Name="EdGraphPin_2453" | |
| End Object | |
| Begin Object Class=EdGraphPin Name="EdGraphPin_2454" | |
| End Object | |
| Begin Object Name="EdGraphPin_2453" | |
| PinName="OutputDelegate" | |
| Direction=EGPD_Output | |
| PinType=(PinCategory="delegate",PinSubCategoryObject=Function'/Script/Engine.Actor:ReceiveBeginPlay') | |
| End Object |
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
| timelinesListApp.directive "whenScrolled", ($window) -> | |
| (scope, element, attr) -> | |
| angular.element($window).bind "scroll", -> | |
| scrollTop = document.body.scrollTop || document.documentElement.scrollTop | |
| clientHeight = $window.innerHeight | |
| scrollHeight = document.body.scrollHeight || document.docomentElement.scrollHeight | |
| clientHeight = window.innerHeight if scrollHeight == clientHeight | |
| remain = scrollHeight - clientHeight - scrollTop | |
| if remain <= 30 | |
| scope.$apply(attr.whenScrolled) |
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
| .m-0 { | |
| margin: 0px !important; | |
| } | |
| .mt-0 { | |
| margin-top: 0px !important; | |
| } | |
| .mr-0 { | |
| margin-right: 0px !important; |
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
| timelinesListApp.directive 'ckeditor', -> | |
| require: '?ngModel' | |
| link: (scope, elm, attr, ngModel)-> | |
| ck = CKEDITOR.instances[elm[0].id] | |
| unless ngModel then return | |
| ck.on 'pasteState', -> | |
| scope.$apply -> | |
| ngModel.$setViewValue ck.getData() | |
| ngModel.$render = (value)-> ck.setData ngModel.$viewValue |
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
| # lib/custom_failure.rb[new] | |
| class CustomFailure < Devise::FailureApp | |
| def redirect_url | |
| root_url # 遷移先 | |
| end | |
| def respon | |
| if http_auth? | |
| http_auth | |
| else |
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
| ja: | |
| devise: | |
| confirmations: | |
| #confirmed: "Your account was successfully confirmed. You are now signed in." | |
| confirmed: "アカウント登録完了。" | |
| #send_instructions: "You will receive an email with instructions about how to confirm your account in a few minutes." | |
| send_instructions: "数分後にアカウント確認方法をメールでお送りします。" | |
| #send_paranoid_instructions: "If your email address exists in our database, you will receive an email with instructions about how to confirm your account in a few minutes." | |
| send_paranoid_instructions: "あなたのメールアドレスが登録済みの場合、数分であなたのアカウントを確認する方法を添えたメールが送信されるでしょう。" | |
| failure: |
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
| class @Dialog | |
| yesNoDialog:(target, dialog)-> | |
| jquery_dialog = $(dialog) | |
| # ボタンの表示文字列を取得 | |
| buttons_ary = {} | |
| buttons_ary[jquery_dialog.attr("dialog_ok")] = -> | |
| $(@).dialog( "close" ) | |
| $(target).unbind("click") | |
| target.click() | |
| buttons_ary[jquery_dialog.attr("dialog_no")] = -> |
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
| # Remove color tag("\color{xxxx}") from the TeX File. | |
| dir_path = ARGV[0] | |
| if dir_path.nil? || dir_path.size == 0 | |
| print "ERROR: select target!!\n" | |
| exit 255 | |
| end | |
| print "target: #{dir_path}\n" | |
| if File.file?(dir_path) | |
| paths = [File.expand_path(dir_path)] |
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
| # CSV seedfile | |
| # load csv seedfile on rails. | |
| # | |
| # db/ | |
| # ├── seeds | |
| # │ └── User-0000.csv <-- seed csv | |
| # └── seeds.rb <-- It's me | |
| # | |
| # [csv] | |
| # name,email,password,role |
NewerOlder