Skip to content

Instantly share code, notes, and snippets.

View m4rr's full-sized avatar
🚀
IPO

Marat m4rr

🚀
IPO
View GitHub Profile
/* http://meyerweb.com/eric/tools/css/reset/
v2.0 | 20110126
License: none (public domain)
*/
html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup, menu, nav, output, ruby, section, summary, time, mark, audio, video {
margin: 0;
padding: 0;
border: 0;
font-size: 100%;
@jakago
jakago / id3tag.rb
Created July 11, 2011 05:06
Write id3 tag into mp3
#!/usr/bin/env ruby -Ku
require 'nkf'
require 'tempfile'
require 'fileutils'
def encode_size( int32 )
result = String.new()
result << ((int32 & (0x0000007f << 21)) >> 21).chr
result << ((int32 & (0x0000007f << 14)) >> 14).chr
@pmilosev
pmilosev / screencast
Last active March 3, 2017 09:23
Stream iPhone's screen over WIFI
/*
* 1) Download CocoaHTTPServer from Github: https://github.com/robbiehanson/CocoaHTTPServer
* 2) Include the downloaded source (except the samples) in your project
* 3) Define the SCREENCAST macro for the target/configuration you want to enable the screencast for (SCREENCAST=1)
* 4) Add the code below to your main.m file before the main() method
*/
#if SCREENCAST
#import "HTTPServer.h"
#import "HTTPConnection.h"
@jimbojsb
jimbojsb / gist:1630790
Created January 18, 2012 03:52
Code highlighting for Keynote presentations

Step 0:

Get Homebrew installed on your mac if you don't already have it

Step 1:

Install highlight. "brew install highlight". (This brings down Lua and Boost as well)

Step 2:

@jexchan
jexchan / multiple_ssh_setting.md
Created April 10, 2012 15:00
Multiple SSH keys for different github accounts

Multiple SSH Keys settings for different github account

create different public key

create different ssh key according the article Mac Set-Up Git

$ ssh-keygen -t rsa -C "your_email@youremail.com"
@AmbientLighter
AmbientLighter / crh_ukr
Created July 2, 2012 21:01
Alternative Crimean Tatar Keyboard Layout
// $XKeyboardConfig$
// based on
// ukrainian standard keyboard
// AEN <aen@logic.ru> & Leon Kanter <leon@geon.donetsk.ua>
// Last Changes 2007/10/03 by Andriy Rysin <arysin@yahoo.com>
//
// $XFree86: xc/programs/xkbcomp/symbols/ua,v 1.4 2003/05/15 11:29:47 pascal Exp $
// Unicode - 3d level added with some Unicode symbols (typographic quotes, m-dash, n-dash etc),
@simX
simX / hidpi.txt
Created July 28, 2012 04:58
Enable HiDPI mode in Mountain Lion w/o Quartz Debug
sudo defaults write /Library/Preferences/com.apple.windowserver DisplayResolutionEnabled -bool YES;
sudo defaults delete /Library/Preferences/com.apple.windowserver DisplayResolutionDisabled;
// by the way, you need to logout and log back in for this to take effect. Or at least that's what
// Quartz Debug says. Who knows, maybe it's lying?
// P.S. Go to [Apple menu --> System Preferences --> Displays --> Display --> Scaled] after logging
// back in, and you'll see a bunch of "HiDPI" resolutions in the list to choose from.
@ngopal
ngopal / alarm_clock_spotify.scpt
Created August 13, 2012 21:02
Setup your mac to use Spotify as your alarm clock
# In order to use this script, you must replace 'YOURUSERNAMEHERE' with your Spotify username.
# Execute this script like so: 'osascript alarm_clock_spotify.scpt' (without single-quotes obviously)
# Full explanation here: http://www.nikhilgopal.com/2011/08/show-and-tell-applescript-spotify-alarm.html
# If you would like to specify a playlist, please refer to this gist: https://gist.github.com/3344118
set volume 2
open location "spotify:user:YOURUSERNAMEHERE:playlist:muzic"
tell application "Spotify"
set the sound volume to 0
play
@adamgit
adamgit / .gitignore
Last active October 5, 2024 13:31
.gitignore file for Xcode4 / OS X Source projects
#########################
# .gitignore file for Xcode4 and Xcode5 Source projects
#
# Apple bugs, waiting for Apple to fix/respond:
#
# 15564624 - what does the xccheckout file in Xcode5 do? Where's the documentation?
#
# Version 2.6
# For latest version, see: http://stackoverflow.com/questions/49478/git-ignore-file-for-xcode-projects
#
@leechy
leechy / dabblet.css
Created December 19, 2012 07:58
AppStore Badge with SVG and fallback to png
/**
* AppStore Badge with SVG and fallback to png
*/
.b-download__app-store-badge {
display: inline-block;
background: url('http://www.leechy.ru/inn/appstore-en.png') no-repeat;
background: none, url('http://www.leechy.ru/inn/appstore-en.svg') no-repeat;
background-size: 100% 100%;
width: 135px;