Skip to content

Instantly share code, notes, and snippets.

Avatar
💭
I 💟 🍛

teitei-tk teitei-tk

💭
I 💟 🍛
View GitHub Profile
@mizchi
mizchi / フロントエンドを楽にするために.md
Last active Sep 24, 2020
フロントエンドを楽にするために
View フロントエンドを楽にするために.md

フロントエンドを楽にするために

Qiitaを支えたい技術 at 時雨祭

About

  • HN: mizchi
  • Qiitaの方からきました(入社半年たったらしい)
  • Reactオジサンはそろそろ飽きてきた
  • Angularに興味が無いのでこっちにきた
@luchuan
luchuan / gist:4343611
Last active Aug 27, 2020
hack HomeBrew for installing phash and its python binding under Mac OS 10.7.5
View gist:4343611
cd /usr/local/Library/Formula
vim phash.rb 将内容改为 https://gist.github.com/4343605 所示
brew install phash --disable-video-hash --disable-audio-hash
git clone https://github.com/luchuan/py-phash.git
cd py-phash; python setup install
@dstroot
dstroot / install-redis.sh
Created May 23, 2012
Install Redis on Amazon EC2 AMI
View install-redis.sh
#!/bin/bash
# from here: http://www.codingsteps.com/install-redis-2-6-on-amazon-ec2-linux-ami-or-centos/
# and here: https://raw.github.com/gist/257849/9f1e627e0b7dbe68882fa2b7bdb1b2b263522004/redis-server
###############################################
# To use:
# wget https://raw.github.com/gist/2776679/04ca3bbb9f085b192f6aca945120fe12d59f15f9/install-redis.sh
# chmod 777 install-redis.sh
# ./install-redis.sh
###############################################
echo "*****************************************"
@sgk
sgk / trac2down.py
Created Oct 14, 2011
Trac Wiki to Markdown converter
View trac2down.py
#!/usr/bin/python
# vim:set fileencoding=utf-8 sw=2 ai:
import sqlite3
import datetime
import re
SQL = '''
select
name, version, time, author, text
@yagitoshiro
yagitoshiro / push_notifications.js
Last active Aug 13, 2016
apple push notification sample (Titanium Mobile)
View push_notifications.js
//////////////////////push_notifications.js///////////////////////
var apns = function(){
var pref = require('preferences').preferences;
Titanium.Network.registerForPushNotifications({
types: [
Titanium.Network.NOTIFICATION_TYPE_BADGE,
Titanium.Network.NOTIFICATION_TYPE_ALERT
],
success:function(e)
@mkitt
mkitt / notes.md
Created Feb 13, 2011
AppleScript for use with Automator which allows opening files within Terminal Vim
View notes.md

What It Does

This AppleScript used in conjunction with Automator will allow you to set preferences for opening files via mouse click in the Terminal version of Vim. It will also allow you to fire up the Terminal version of Vim through Spotlight within the home directory.

Installation Notes

  • Fire up Automator
  • Choose "Application" from the workflow templates
  • Under the "Actions" panel select "Utilities"
  • To the right of "Utilities" drag an instance of "Run AppleScript" to the editor window
You can’t perform that action at this time.