Skip to content

Instantly share code, notes, and snippets.

View jeserkin's full-sized avatar

Eugene Serkin jeserkin

View GitHub Profile
@jeserkin
jeserkin / gist:1953801
Created March 1, 2012 22:50
Twitter Bootstrap Fluid-Sticky example. Modified martinbean example.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Bootstrap, from Twitter</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="">
<meta name="author" content="">
<link href="../assets/css/bootstrap.css" rel="stylesheet">
<style type="text/css">
@jeserkin
jeserkin / gist:2210346
Created March 26, 2012 22:42
Notification in android environment
NotificationManager nm = ( NotificationManager ) getSystemService( NOTIFICATION_SERVICE );
Notification notify = new Notification( android.R.drawable.stat_notify_more, "30 seconds ago you did something special and now it is over", ( System.currentTimeMillis() + 30000 ) );
Context context = QuizManager.this;
String title = "You were notified!";
String details = "You were notified about something!";
Intent intent = new Intent( context, QuizManager.class );
PendingIntent pi = PendingIntent.getActivity( context, 0, intent, 0 );
notify.setLatestEventInfo( context, title, details, pi );
nm.notify( 0, notify );
@jeserkin
jeserkin / gist:3890005
Created October 14, 2012 22:20
git remote
$ git remote -v
jsremote git@github.com:jeserkin/progit.git (fetch)
jsremote git@github.com:jeserkin/progit.git (push)
jsremote_https https://github.com/jeserkin/progit.git (fetch)
jsremote_https https://github.com/jeserkin/progit.git (push)
origin git://github.com/jeserkin/progit.git (fetch)
origin git://github.com/jeserkin/progit.git (push)
@jeserkin
jeserkin / gist:3890025
Created October 14, 2012 22:31
another gist
$ git remote -v
origin git://github.com/jeserkin/gitscm-next.git (fetch)
origin git://github.com/jeserkin/gitscm-next.git (push)
shh_attempt git@github.com:jeserkin/gitscm-next.git (fetch)
shh_attempt git@github.com:jeserkin/gitscm-next.git (push)
@jeserkin
jeserkin / gist:3935273
Created October 22, 2012 22:58
Pretty git log
git log -p --format="Author: %aN%nDate: %ci%n%n%s%n%nCommit hash: %H%nTree hash: %T%n Parent hashes: %P" --graph
@jeserkin
jeserkin / file1
Created October 27, 2012 14:07
git rebase example
Eugene@EUGENE-PC /some (master)
$ git log
commit f172c390d5c8a343e6a83842b6ce85a2884cf8e0
Author: Eugene Serkin <jeserkin@gmail.com>
Date: Sat Oct 27 15:15:21 2012 +0300
Initial commit
Eugene@EUGENE-PC /some (master)
$ git status

Last.fm PHP Api v2

All services:

  • Album
  • Artist
  • Auth
  • Chart
  • Event
  • Geo
  • Group
@jeserkin
jeserkin / index.html
Last active October 12, 2015 19:38
Three part button markup and style
<!--
Three part button
http://jsfiddle.net/32GG3/1/
-->
<div class="blue-button-big">
<div class="left-side"></div>
<input type="submit" value="You may enter" class="center-side" />
<div class="right-side"></div>
</div>
Eugene@EUGENE-PC /C/Users/Eugene/Desktop/work (master)
$ git submodule add file:///C/Users/Eugene/Desktop/tmp_git test
fatal: You are on a branch yet to be born
Unable to checkout submodule 'test'
---------------------------------------------------------------
Main repo:
Eugene@EUGENE-PC /C/Users/Eugene/Desktop/work (master)
Eugene@EUGENE-PC /C/Users/Eugene/Desktop/work (master)
$ ls -la
total 38
drwxr-xr-x 9 Eugene Administ 4096 Dec 16 01:00 .
dr-xr-xr-x 109 Eugene Administ 65536 Dec 14 22:50 ..
drwxr-xr-x 14 Eugene Administ 4096 Dec 16 01:00 .git
-rw-r--r-- 1 Eugene Administ 78 Dec 16 01:00 .gitmodules
-rw-r--r-- 1 Eugene Administ 23 Dec 16 00:37 LICENSE
-rw-r--r-- 1 Eugene Administ 20 Dec 15 19:12 README
-rw-r--r-- 1 Eugene Administ 74 Dec 16 00:37 index.php