Skip to content

Instantly share code, notes, and snippets.

Avatar
:octocat:
⭐️ 🚀 🍻 🍶

kazu69 kazu69

:octocat:
⭐️ 🚀 🍻 🍶
View GitHub Profile
@mirisuzanne
mirisuzanne / input-placeholder.sass
Created April 16, 2011 22:56
styling placeholder text
View input-placeholder.sass
// Mixins ---------------------------------------------------------------
=placeholder-style
color: #777
// add your defaults here.
// if you need more than one style-group you can either create several mixins,
// or just name the style-groups and take a single style-group-name argument.
=apply-placeholders
&::-webkit-input-placeholder
@collinschaafsma
collinschaafsma / rails-grunt.js
Created April 10, 2012 03:43
Grunt config for Rails
View rails-grunt.js
// This is the main application configuration file. It is a Grunt
// configuration file, which you can learn more about here:
// https://github.com/cowboy/grunt/blob/master/docs/configuring.md
//
module.exports = function(grunt) {
grunt.initConfig({
// The clean task ensures all files are removed from the dist/ directory so
// that no files linger from previous builds.
@mikefowler
mikefowler / _base.scss
Created August 15, 2012 15:24
Sass Theming Structure
View _base.scss
/**
* The result of this file structure is ONE *.css file per theme. Making a global change
* to _base or _config partial will update all themes that inherit from them. #win
*/
@import 'config';
/**
* Global
*/
@yosshi
yosshi / id333903271.html
Created October 3, 2012 09:58
Mobile Safari で mobile.twitter.com にアクセスすると、アプリのリンクが出る。そのソースコード
View id333903271.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><meta name="keywords" content="iTunes Store" /><meta name="description" content="iTunes Store" /><meta name="viewport" content="width = device-width, initial-scale = 1, minimum-scale = 1, maximum-scale = 1, user-scalable = no" /><meta name="platform-cache-id" content="16" />
<title></title>
@paul-yamamoto
paul-yamamoto / gist:3869923
Created October 11, 2012 03:03
GitHubプライベートリポジトリをJenkinsからチェックアウトする。
View gist:3869923
(「GitHubプライベートリポジトリ」と書きましたが、SSH鍵認証でGITを運用してる場合も同じだと思います。)
プライベートリポジトリの場合、SSH鍵認証での接続になると思いますが、Jenkins管理画面にはその設定(鍵の登録)項目がありません。
そこで、Jenkins実行サーバのJenkins実行ユーザにSSHの設定をする必要があります。
1. Jenkins実行サーバにてJenkinsユーザになり、SSHキーを生成する。`ssh-keygen -t rsa`
2. 生成した公開鍵をGithubアカウント管理画面で登録する。
@gaspanik
gaspanik / hayaku-ja.mdown
Last active October 13, 2015 03:57
ST2: Hayaku ja
View hayaku-ja.mdown

Hayakuの使い方

CSSを「速く」書くためのSublime Text 2のパッケージ「Hayaku!」について。

インストール

Package Controlからどうぞ

使い方

@tessalt
tessalt / caret.scss
Last active October 13, 2015 21:58
caret
View caret.scss
%pseudo-content-before {
position: relative;
&:before {
content: " ";
position: absolute;
display: block;
}
}
%pseudo-content-after {
@bastianallgeier
bastianallgeier / drop.js
Created April 9, 2013 13:15
Drag & Drop
View drop.js
(function($) {
$.fn.droparea = function() {
return this.each(function() {
$(this).on({
'dragenter, dragleave' : function(e) {
e.stopPropagation();
e.preventDefault();
return false;
@markomarkovic
markomarkovic / compile_PHPUnit-3.5.15.sh
Created November 2, 2011 02:26
A script to compile PHPUnit-3.5.15 with all dependencies into archive which can be extracted to CakePHP 2.0 Vendor directory in order to UnitTest cake (if you don't have access to PEAR commands or PEAR insists on installing PHPUnit-3.6.0 and not working).
View compile_PHPUnit-3.5.15.sh
#!/bin/sh
# Creating temp dirs
mkdir .compile_PHPUnit_$$
cd .compile_PHPUnit_$$
# Fetching the archives
wget -nv http://pear.phpunit.de/get/PHPUnit-3.5.15.tgz
wget -nv http://pear.phpunit.de/get/DbUnit-1.0.0.tgz
wget -nv http://pear.phpunit.de/get/File_Iterator-1.2.3.tgz