This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Error: ECONNREFUSED, Connection refused | |
at Socket._onConnect (net.js:601:18) | |
at IOWatcher.onWritable (net.js:186:12) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "mainwindow.h" | |
#include "ui_mainwindow.h" | |
#include <QUrl> | |
#include <QDesktopServices> | |
#include <QMessageBox> | |
MainWindow::MainWindow(const QUrl& urlToOpen, QWidget *parent) : | |
QWebView(parent) | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |