Skip to content

Instantly share code, notes, and snippets.

View R4md4c's full-sized avatar

Ahmed I. Khalil R4md4c

View GitHub Profile
import androidx.lifecycle.ViewModel
import androidx.lifecycle.ViewModelProvider
import androidx.lifecycle.ViewModelStore
import androidx.lifecycle.ViewModelStoreOwner
import org.amshove.kluent.shouldBe
import org.junit.Test
class MyViewModel : ViewModel() {
var isCleared = false
@R4md4c
R4md4c / mainwindow.cpp
Created January 2, 2012 11:29
MainWindow of the program
#include "mainwindow.h"
#include "ui_mainwindow.h"
#include <QtWebKit/QWebView>
#include <QUrl>
#include <QDesktopServices>
#include <QMessageBox>
MainWindow::MainWindow(const QUrl& urlToOpen, QWidget *parent) :
QWebView(parent)
@R4md4c
R4md4c / mainwindow.cpp
Created January 2, 2012 11:17
MainWindow of the program
#include "mainwindow.h"
#include "ui_mainwindow.h"
#include <QUrl>
#include <QDesktopServices>
#include <QMessageBox>
MainWindow::MainWindow(const QUrl& urlToOpen, QWidget *parent) :
QWebView(parent)
{
function messageDecode(text) {
var utftext = unescape(text);
var string = "";
var i = 0;
var c = c1 = c2 = 0;
while ( i < utftext.length ) {
c = utftext.charCodeAt(i);
Error: ECONNREFUSED, Connection refused
at Socket._onConnect (net.js:601:18)
at IOWatcher.onWritable (net.js:186:12)
Directory of C:\Users\Ramdac\Desktop\sqlite\sqlite
08/06/2011 02:58 AM <DIR> .
08/06/2011 02:58 AM <DIR> ..
07/24/2011 09:33 PM 43 .gitignore
07/24/2011 09:33 PM 107 .gitmodules
07/24/2011 09:33 PM 5,583 .lock-wscript
08/06/2011 02:58 AM <DIR> async-testing
08/06/2011 02:58 AM <DIR> build
#/usr/bin/python
from os import *
import sys
'''Function for getting the folder name from the root given'''
def getFolderName(root):
x = root.split('/')
return x[-1]
'''Recurse or walk to every directory i put root, dirs and files variables because the walk function
#include <windows.h>
#include <windowsx.h>
#include <d3d9.h>
#include <d3dx9.h>
#include <assert.h>
// define the screen resolution
#define SCREEN_WIDTH 800
#define SCREEN_HEIGHT 600