View Mp3Fragment.java
1 2 3 4 5 6 7 8 9 10
package tl.domacoski;
 
import java.io.File;
import java.util.ArrayList;
import java.util.List;
 
import android.annotation.SuppressLint;
import android.media.MediaPlayer;
import android.net.Uri;
import android.os.Bundle;
View assets.rb
1 2 3 4 5 6 7 8 9 10
# Before
Rails.application.config.assets.version = '1.0'
Rails.application.config.assets.paths << Emoji.images_path
Rails.application.config.assets.precompile += %w( search.js )
 
# After
Rails.application.config.assets.tap do |assets|
assets.version = '1.0'
assets.paths << Emoji.images_path
assets.precompile += %w( search.js )
View 10: animator-morph_ridge_2_to_tick.xml
1 2 3 4 5 6 7 8 9
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (C) 2015 The Android Open Source Project
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
View gist:d94b4a35894a4520d5ac

Sublime Text 2 – Useful Shortcuts (Mac OS X)

General

⌘T go to file
⌘⌃P go to project
⌘R go to methods
⌃G go to line
⌘KB toggle side bar
⌘⇧P command prompt
View 0_urllib2.py
1 2 3 4 5 6 7 8 9 10
#!/usr/bin/env python
# -*- coding: utf-8 -*-
 
import urllib2
 
gh_url = 'https://api.github.com'
 
req = urllib2.Request(gh_url)
 
password_manager = urllib2.HTTPPasswordMgrWithDefaultRealm()
View GTFS Realtime Example Java
1 2 3 4 5 6 7 8 9
 
import com.google.transit.realtime.GtfsRealtime;
 
import static com.google.transit.realtime.GtfsRealtime.*;
 
/**
* Created by victor on 2/07/15.
*/
public class EndpointMain {
View index.html
1 2 3 4 5 6 7 8 9 10
<html xmlns:v="urn:schemas-microsoft-com:vml"
xmlns:o="urn:schemas-microsoft-com:office:office"
xmlns:w="urn:schemas-microsoft-com:office:word"
xmlns:m="http://schemas.microsoft.com/office/2004/12/omml"
xmlns:mv="http://macVmlSchemaUri" xmlns="http://www.w3.org/TR/REC-html40">
 
<head>
<meta name=Title content="Sebastian Hennig">
<meta name=Keywords content="">
<meta http-equiv=Content-Type content="text/html; charset=macintosh">
View Get data from periscope
1 2 3 4 5 6 7 8 9
// Convert CSV to JS Obj
function csvToObj(csv) {
var lines = csv.split("\n");
var result = [];
var headers = lines[0].split(",");
 
for (var i = 1; i < lines.length; i++) {
var obj = {};
var currentline = lines[i].split(",");
View notes.md

Chrome Performance Debugging

Lenny Sirivong @lsirivong

rendering pipeline

Parse HTML > Recalculate Styles > Layout > Paint > Composite Layers

4 points in app lifescycle RAIL (or LIAR)

View request_pacemaker_glue.md

RHEL/CentOS/Fedora 7 Pacemaker Package was built without 'legacy' plugin support

'Legacy' pacemaker plugins provide useful, well tested resource providers for linux high availability / the open cluster framework (OCF), most of them are still very widely used / relied upon and are a potentially blocker for people wanting to build modern linux clusters based on RHEL/CentOS 7 and beyond.

In a perfect world RHEL/Fedora would simply build the pacemaker package with the --with stonithd flag and reinstate the cluster-glue package that was present in 6, However I know how hard it is to get those kind of changes made after a release (and probably for good reason).

  • There is only one difference when building the pacemaker package that enables this that requires no additional packages or code.
  • There are three parts to this request - they are neither complex or fraught with dependency nightmares.

  1. Provide the package pacemaker with legacy-plugins enabled when the RPM is generated.
Something went wrong with that request. Please try again.