Skip to content

Instantly share code, notes, and snippets.

View boldijar's full-sized avatar
🏄‍♂️
surfing through native android and ios codebases

Boldijar Paul boldijar

🏄‍♂️
surfing through native android and ios codebases
View GitHub Profile
import 'package:flutter/material.dart';
import 'package:partymobile/ui/custom/statefullist.dart';
class DebugUiPage extends StatefulWidget {
DebugUiPage({Key key}) : super(key: key);
@override
_DebugUiPageState createState() => new _DebugUiPageState();
}
import 'package:flutter/material.dart';
class DebugUiPage extends StatefulWidget {
DebugUiPage({Key key}) : super(key: key);
@override
_DebugUiPageState createState() => new _DebugUiPageState();
}
class _DebugUiPageState extends State<DebugUiPage>
@boldijar
boldijar / debugui.dart
Created March 9, 2018 09:21
Sample cod for issue
import 'package:flutter/material.dart';
typedef double GetOffsetMethod();
typedef void SetOffsetMethod(double offset);
class DebugUiPage extends StatefulWidget {
DebugUiPage({Key key}) : super(key: key);
@override
_DebugUiPageState createState() => new _DebugUiPageState();
@boldijar
boldijar / statefullist.dart
Created March 9, 2018 09:20
List view in dart that will keep it's scrolling position
import 'package:flutter/material.dart';
class DoubleHolder {
double value = 0.0;
}
class StatefulListView extends StatefulWidget {
final DoubleHolder offset = new DoubleHolder();
StatefulListView(this._itemCount,
@boldijar
boldijar / Main.java
Created February 21, 2017 07:29
closest location quiz
import java.io.*;
import java.util.*;
/**
* Created by BoldijarPaul on 31/01/2017.
*/
public class Main {
public static class Location implements Comparable {
int x;
const Koa = require('koa');
const app = new Koa();
const server = require('http').createServer(app.callback());
const WebSocket = require('ws');
const wss = new WebSocket.Server({server});
const Router = require('koa-router');
const cors = require('koa-cors');
const bodyparser = require('koa-bodyparser');
app.use(bodyparser());
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace test
{
class Program
(defun preordine(l)
(cond
( ( null l ) nil )
( t
(
append
( list ( car l ) )
( preordine ( cadr l ) )
( preordine ( caddr l ))
<LinearLayout
android:id="@+id/my_layout"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<LinearLayout
android:id="@+id/my_normal_layout"
android:orientation="horizontal"
android:gravity="end"
android:layout_width="0dp"
/* drop tables */
IF OBJECT_ID('dbo.stockproduct', 'U') IS NOT NULL
DROP TABLE dbo.stockproduct;
IF OBJECT_ID('dbo.product', 'U') IS NOT NULL
DROP TABLE dbo.product;
IF OBJECT_ID('dbo.category', 'U') IS NOT NULL
DROP TABLE dbo.category;
IF OBJECT_ID('dbo.stock', 'U') IS NOT NULL
DROP TABLE dbo.stock;