Skip to content

Instantly share code, notes, and snippets.

[{"name":"asdasd","color":"Red","position":{"x":100,"y":100},"increment":true,"timestamp":true,"softdelete":false,"column":[{"name":"asd","type":"increments","length":"","defaultvalue":"","enumvalue":"","ai":false,"pk":false,"nu":false,"ui":false,"in":false,"un":false,"fillable":false,"guarded":false,"visible":false,"hidden":false,"colid":"c23","order":0}],"relation":[],"seeding":[[{"colid":"c23","content":"asd"}],[{"colid":"c23","content":"asd"}],[{"colid":"c23","content":"asd"}],[{"colid":"c23","content":"asd"}],[{"colid":"c23","content":"asd"}]]}]
[{"name":"Bears","color":"Blue","position":{"x":177,"y":85},"modelclass":"Bear","increment":false,"timestamp":false,"softdelete":false,"column":[{"colid":"c217","name":"id","type":"increments","length":"0","order":0,"defaultvalue":"","enumvalue":""},{"colid":"c218","name":"name","type":"string","length":"200","order":1,"defaultvalue":"","enumvalue":""},{"colid":"c219","name":"danger_level","type":"string","length":"200","order":2,"defaultvalue":"","enumvalue":""}],"relation":[{"extramethods":"","foreignkeys":"","name":"fish","relatedmodel":"Fish","relationtype":"hasOne","usenamespace":""},{"extramethods":"","foreignkeys":"","name":"trees","relatedmodel":"Trees","relationtype":"hasMany","usenamespace":""},{"extramethods":"","foreignkeys":"bear_id, picnic_id","name":"picnics","relatedmodel":"Picnics","relationtype":"belongsToMany","usenamespace":""}],"seeding":[]},{"name":"Fish","color":"Yellow","position":{"x":1063,"y":14},"modelclass":"Fish","increment":false,"timestamp":false,"softdelete":false,"column":[{"c
@midoalone
midoalone / install.php
Created August 15, 2019 00:02 — forked from tschoffelen/install.php
A simple PHP script that automatically downloads and unzips the latest version of Wordpress in the current directory (./), so that I don't have to download it and upload it to my server through FTP manually.
<?php
echo '<pre>';
echo '<span style="color:blue">DOWNLOADING...</span>'.PHP_EOL;
// Download file
file_put_contents('wp.zip', file_get_contents('http://wordpress.org/latest.zip'));
$zip = new ZipArchive();
$res = $zip->open('wp.zip');
if ($res === TRUE) {
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.html$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.html [L]
</IfModule>
import React, { Component } from 'react'
import { Text, View, StyleSheet } from 'react-native'
import { Button } from 'native-base'
import { task_register } from '../api'
import MapView, { Callout, PROVIDER_GOOGLE , Marker} from 'react-native-maps'
import { Icon } from 'react-native-elements';
class DetailsScreen extends Component {
import React, { Component } from 'react'
import { FlatList, Text, View, TouchableOpacity, ActivityIndicator, Linking } from 'react-native'
import { CardItem, Body } from 'native-base'
import { SearchBar } from 'react-native-elements'
export default class LaunchScreen extends Component {
state = {
data: [],
discription: [],
@midoalone
midoalone / wiki.js
Created November 17, 2018 14:28
wiki.js
import React, { Component } from 'react'
import { FlatList, Text, View } from 'react-native'
// Styles
import { Button, Container, Header, Icon, Input, Item } from 'native-base'
export default class LaunchScreen extends Component {
state={
data: [],
query: '',
@midoalone
midoalone / dom-to-json.js
Created January 20, 2018 23:34 — forked from sstur/dom-to-json.js
Stringify DOM nodes using JSON (and revive again)
function toJSON(node) {
node = node || this;
var obj = {
nodeType: node.nodeType
};
if (node.tagName) {
obj.tagName = node.tagName.toLowerCase();
} else
if (node.nodeName) {
obj.nodeName = node.nodeName;
@midoalone
midoalone / realtojson.java
Created September 30, 2017 11:44
Convert realm object to json using Gson
Gson gson = new Gson();
String listString = gson.toJson( items, new TypeToken<ArrayList<Item>>() {}.getType());
try {
JSONArray jsonArray = new JSONArray(listString);
System.out.println(jsonArray.toString());
} catch (JSONException e) {
e.printStackTrace();
}
<?php
/*
Plugin Name: HowTo Plugin
Plugin URI:
Description: This Plugin demonstrates how you can build your own plugin pages using the WordPress provided draggable metaboxes, requires WordPress 2.7 version, supports WordPress 2.8 changed boxing layout engine
Author: Heiko, Frank
Author URI: http://bueltge.de
Version: 0.1
License: