Elixirの写経をする
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
| // load "//code.jquery.com/jquery-3.4.1.min.js" | |
| let rebindClickEvent = () => { | |
| $('a.next').on('click', () => location.href = $('a.next')[0].href ); | |
| $('a.prev').on('click', () => location.href = $('a.prev')[0].href ); | |
| $('li.toc-level1').map((i, li) => { | |
| $(li).on('click', () => location.href = $(li).children()[0].href ) | |
| }) | |
| console.log("rebind") | |
| } | |
| setTimeout(rebindClickEvent, 1000 * 5); |
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
| #!/usr/bin/env ruby | |
| # coding : utf-8 | |
| require 'esa' | |
| require 'yaml' | |
| class Importer | |
| attr_accessor :client, :files | |
| def initialize(client, dir_path) | |
| @client = client |
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/sh | |
| # | |
| # puma - this script starts and stops the puma daemon | |
| # | |
| # chkconfig: - 85 15 | |
| # description: Description \ | |
| # goes here... | |
| # processname: puma | |
| # config: /etc/puma.conf | |
| # pidfile: /home/stanislaw/apps/micro-apps/puma/puma.pid |
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
| "dein Scripts----------------------------- | |
| if &compatible | |
| set nocompatible " Be iMproved | |
| endif | |
| " Required: | |
| set runtimepath^=/home/pi/.dein/repos/github.com/Shougo/dein.vim | |
| " Required: | |
| call dein#begin(expand('/home/pi/.dein')) |
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
| #!/usr/bin/env ruby | |
| # coding : utf-8 | |
| require 'octokit' | |
| require 'csv' | |
| require 'date' | |
| # Github credentials to access your private project | |
| USERNAME="USER_NAME" | |
| PASSWORD="SEKRIT" | |
| # Project you want to export issues from |
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
| // Alamofire.swift | |
| // | |
| // Copyright (c) 2014 Alamofire (http://alamofire.org) | |
| // | |
| // Permission is hereby granted, free of charge, to any person obtaining a copy | |
| // of this software and associated documentation files (the "Software"), to deal | |
| // in the Software without restriction, including without limitation the rights | |
| // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
| // copies of the Software, and to permit persons to whom the Software is | |
| // furnished to do so, subject to the following conditions: |
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
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <string.h> | |
| /* | |
| * MCrypt API available online: | |
| * http://linux.die.net/man/3/mcrypt | |
| */ | |
| #include <mcrypt.h> |
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
| # pwd | |
| /var/www/html | |
| # ls | |
| wordpress |
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 "AFHTTPSessionManager.h" | |
| @interface Hoge : NSObject | |
| + (Hoge*)sharedClient; | |
| - (void)hogeWithId:(NSString *)hogeId completion:(void (^)(NSDictionary *results, NSError *error))block; | |
| @end |