Skip to content

Instantly share code, notes, and snippets.

@iHassan
iHassan / Galaxy Of Tutorial Torrents
Created February 11, 2015 01:20
Ultimate Galaxy Of Tutorial Torrents
=============================
**http://kickass.to/infiniteskills-learning-jquery-mobile-working-files-t7967156.html
**http://kickass.to/lynda-bootstrap-3-advanced-web-development-2013-eng-t8167587.html
**http://kickass.to/lynda-css-advanced-typographic-techniques-t7928210.html
**http://kickass.to/lynda-html5-projects-interactive-charts-2013-eng-t8167670.html
**http://kickass.to/vtc-html5-css3-responsive-web-design-course-t7922533.html
*http://kickass.to/10gen-m101js-mongodb-for-node-js-developers-2013-eng-t8165205.html
*http://kickass.to/cbt-nuggets-amazon-web-services-aws-foundations-t7839734.html
@yupadhyay
yupadhyay / SightlyClientLibInclude.html
Created February 7, 2016 19:18
Include Clientlibs in Sightly
<head data-sly-use.clientLib="${'/libs/granite/sightly/templates/clientlib.html'}">
<!--/* for css+js */-->
<meta data-sly-call="${clientLib.all @ categories='your.clientlib'}" data-sly-unwrap></meta>
<!--/* only js */-->
<meta data-sly-call="${clientLib.js @ categories='your.clientlib'}" data-sly-unwrap></meta>
<!--/* only css */-->
<meta data-sly-call="${clientLib.css @ categories='your.clientlib'}" data-sly-unwrap></meta>
@lcostantini
lcostantini / bluemix_logstash.conf
Created March 17, 2016 15:10
Configuration file to run Logstash in Bluemix.
input {
http_poller {
urls => {
"bluemix-health-check" => "http://anomaly-detection.mybluemix.net/health-check"
}
automatic_retries => 0
interval => 10
request_timeout => 8
metadata_target => http_poller_metadata
tags => anomaly
@asolove
asolove / foo.js
Created April 11, 2016 16:13
Flow type for react component with ref callback
// I want to do something like this:
export default class Foo extends React.Component {
render() {
return <div ref={div => this._div = div}>I want a reference to this!</div>
}
}
// Flow says: "Property _div not found on Foo"
// Is there a way to give Foo the type Component & {_div?: Component} ?
@jonashackt
jonashackt / bash
Last active December 1, 2021 01:45
Remote debugging Spring Boot
### java -jar
java -Xdebug -Xrunjdwp:transport=dt_socket,server=y,address=8001,suspend=y -jar target/cxf-boot-simple-0.0.1-SNAPSHOT.jar
### Maven
Debug Spring Boot app with Maven:
mvn spring-boot:run -Drun.jvmArguments="-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8001"
@dmeents
dmeents / redux-form-tut.js
Created August 6, 2016 20:40
The source code for the redux form tutorial on davidmeents.com
import React, { Component } from 'react';
import { Field, reduxForm } from 'redux-form';
import { connect } from 'react-redux';
import * as actions from '../../actions';
const form = reduxForm({
form: 'ReduxFormTutorial',
validate
});
//Resizer - Responsive Design Bookmarklet
javascript:(function(){document.body.appendChild(document.createElement('script')).src='http://codebomber.com/jquery/resizer/resizer.min.js';})();
//ish - yet another viewport resizer
bradfrostweb.com/demo/ish/?url=http%3A%2F%2Fbradfrostweb.com%2Fdemo%2Fish%2F
//Responsinator - Responsive Design Bookmarklet
javascript:location.href='http://www.responsinator.com/?url='+window.location.href
//RWD - Responsive Design Bookmarklet
@mrsarm
mrsarm / CompletableFutureGreeting.java
Created November 8, 2016 17:36
Java 8+ CompletableFuture example with error handling
CompletableFuture.supplyAsync(()-> {
try {
Thread.sleep(5000);
} catch (InterruptedException e) {
throw new RuntimeException("Error sleeping", e);
}
if (System.currentTimeMillis()%2==0) {
throw new RuntimeException("Even time..."); // 50% chance to fail
}
return "Hello World!";
@andersonkxiass
andersonkxiass / DatabaseConfig.java
Last active October 16, 2018 20:13
Spring boot + postgres (Remotely)
@Configuration
@PropertySource({ "classpath:persistence.properties" })
public class DatabaseConfig {
@Bean
@Primary
@ConfigurationProperties(prefix = "spring.datasource")
public DataSource dataSource() {
return DataSourceBuilder.create().build();
}
}
@pareddy113
pareddy113 / AWS Solutions Architect Associate
Last active April 1, 2024 08:03
AWS Solutions Architect Associate 2017- ACloud Guru course
----- Interested Reads------
+ Interesting Read (Serverless Architecture of Acloud guru)
https://read.acloud.guru/serverless-the-future-of-software-architecture-d4473ffed864
----- Getting Started-------
+ Requirements
+ AWS Free Tier Account
+ PC with putty and putty keygen/ Mac
+ Optional
+ IoS/ Android App $20