To manage openshift apps we'll be using rhc
.
Follow the first 3 steps from here
Creating a rails app
require.config({ | |
baseUrl : "bower_components/codemirror", | |
}); | |
require(['lib/codemirror', 'addon/hint/show-hint'], function(CodeMirror, sh) { | |
console.log(CodeMirror.defaults); | |
console.log(CodeMirror.showHint); | |
}); |
To manage openshift apps we'll be using rhc
.
Follow the first 3 steps from here
Creating a rails app
var mors = require('mors'), | |
mosca = require('mosca'), | |
app = mors(); | |
app.all('*', function (req, res, next) { | |
res.topic(req.topic).publish(req.payload); | |
}); | |
var ascoltatore = { | |
//using ascoltatore |
public class DummyActivity extends ActionBarActivity { | |
File f; | |
@Override | |
protected void onCreate(Bundle savedInstanceState) { | |
super.onCreate(savedInstanceState); | |
setContentView(R.layout.dummylayout); |
<?xml version="1.0" encoding="utf-8"?> | |
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" | |
android:orientation="vertical" | |
android:layout_width="match_parent" | |
android:layout_height="match_parent"> | |
<ImageView | |
android:id="@+id/imageView" | |
android:layout_width="512dp" | |
android:layout_height="512dp" |
sudo du -d 5 -h -x / | grep '^\s*[0-9\.]\+G' |
var mosca = require('mosca') | |
var ascoltatore = { | |
//using ascoltatore | |
type: 'mongo', | |
url: 'mongodb://localhost:27017/mqtt', | |
pubsubCollection: 'ascoltatori', | |
mongo: {} | |
}; |
#include <QCoreApplication> | |
#include <opencv.hpp> | |
#include <QDebug> | |
double compute_skew(QString filename); | |
void deskew(QString filename, double angle); | |
int main(int argc, char *argv[]) | |
{ | |
QCoreApplication a(argc, argv); |
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Net; | |
using System.Windows; | |
using System.Windows.Controls; | |
using System.Windows.Navigation; | |
using Microsoft.Phone.Controls; | |
using Microsoft.Phone.Shell; | |
using System.ComponentModel; |
public static Boundaries CheckBoundaries(WriteableBitmap bmp) | |
{ | |
// check left | |
double boundayFactor = 0.1; //10% of the image width/height | |
Boundaries b = new Boundaries(); | |
b.Left = CheckLeft(bmp, boundayFactor); | |
b.Right = CheckRight(bmp, boundayFactor); | |
b.Top = CheckTop(bmp, boundayFactor); | |
b.Bottom = CheckBottom(bmp, boundayFactor); | |
return b; |