Skip to content

Instantly share code, notes, and snippets.

View TakesxiSximada's full-sized avatar
🐻

TakesxiSximada TakesxiSximada

🐻
View GitHub Profile
@TakesxiSximada
TakesxiSximada / .gitignore
Last active January 8, 2023 13:04
change-case.el - Transform a string between camelCase, PascalCase, snake_case, kebab-case, doted.case and others by Emacs Lisp.
*.elc
use strict;
use warnings;
use Cwd qw(getcwd);
my $var_dir = "var";
my $sec_list_repo = "git\@github.com:danielmiessler/SecLists.git";
my $sec_list_repo_dir = "var/SecLists";
my $top_dir = getcwd();
@TakesxiSximada
TakesxiSximada / comment-post.http
Created May 3, 2020 03:47
twitcasting http request
# -*- rectclient -*-
:ACCESS_TOKEN =
:MOVIE_ID =
POST https://apiv2.twitcasting.tv/movies/:MOVIE_ID/comments
Accept: application/json
Content-Type: application/json
X-Api-Version: 2.0
Authorization: Bearer :ACCESS_TOKEN
#! /usr/bin/env python
import pit
config = pit.Pit.get('bob.twitter', {
'require': {
'default_url': 'default url',
'consumer_key': 'your token',
'consumer_secret': 'your token',
'access_token': 'your token',
'access_token_secret': 'your token',
@TakesxiSximada
TakesxiSximada / run_task.py
Created February 26, 2020 17:36
Django commands that make debugging celery tasks easier.
"""Django commands that make debugging celery tasks easier.
For example, execute the command as follows.
$ python manage.py run_task myproject.tasks.example_task --task-args '[1, 2, 3]'
Executing the above command will perform the same processing as the following code.
>>> from myproject.tasks import example_task
>>> example_task(1, 2, 3)
@TakesxiSximada
TakesxiSximada / testing.el
Last active September 17, 2018 13:59
markdown内のcode blockをpythonで1行ずつ実行する
;;; our-execblock.el --- Markdown code block execution helper for Emacs -*- lexical-binding: t -*-
;; Copyright (C) 2018 sximada
;; Author: sximada
;; Version: 1.0.0
;; Package-Version: 20180917.0001
;; Keywords: markdown
;; This program is free software; you can redistribute it and/or modify
@TakesxiSximada
TakesxiSximada / testing.el
Created September 12, 2018 22:15
現在開いているファイルのパスをコピーする
(defun our-buffer-copy-current-file-path ()
(interactive)
(let ((path (buffer-file-name)))
(if path
(progn
(kill-new path)
(message (format "Copied: %s" path)))
(message (format "Cannot copied")))))
@TakesxiSximada
TakesxiSximada / testing.el
Created September 10, 2018 01:42
xwidget-webkit-browse-urlを使ってgoogleの検索を行う
(defun our-google (word)
(interactive "sSearch: ")
(let* ((word (string-join (split-string word " ") "+"))
(url (format "https://www.google.co.jp/search?q=%s" word)))
(xwidget-webkit-browse-url (url-encode-url url) t)))
@TakesxiSximada
TakesxiSximada / .agignore.txt
Last active September 2, 2018 22:17
.agignore
*~
*.swp
*.bak
*.old
tmp
old
.vim/bundle
.vim/dict
.git
.svn
@TakesxiSximada
TakesxiSximada / README.md
Created September 2, 2018 07:17
nuxtが生成するハッシュ値がどの範囲で変更になるのか調べる

nuxtが生成するハッシュ値がどの範囲で変更になるのか調べる

最初の状態

    pages/login.38d6a3574ef7f24208c7.js    3.59 kB       0  [emitted]  pages/login
    pages/index.95646d9712ba91c18314.js    3.69 kB       1  [emitted]  pages/index
layouts/default.52aef6d75cf0748a8cee.js    1.42 kB       2  [emitted]  layouts/default
         vendor.9c7eb01e587af9c61f5f.js     155 kB       3  [emitted]  vendor
            app.4402cd14b5769b636d07.js    30.1 kB       4  [emitted]  app