Skip to content

Instantly share code, notes, and snippets.

View rinukkusu's full-sized avatar
🎯
in the pub

Max Riegler rinukkusu

🎯
in the pub
View GitHub Profile
/********************************************************
COPYRIGHTS http://www.ranjithk.com
*********************************************************/
ALTER PROCEDURE [dbo].[CleanUpSchema]
(
@SchemaName varchar(100)
,@WorkTest char(1) = 'w' -- use 'w' to work and 't' to print
)
AS
/*-----------------------------------------------------------------------------------------
@rinukkusu
rinukkusu / jscolor.d.ts
Created May 23, 2016 12:47
type defintion file for jscolor
/**
* jscolor, JavaScript Color Picker
*
* @version 1.3.1
* @license GNU Lesser General Public License, http://www.gnu.org/copyleft/lesser.html
* @author Jan Odvarko, http://odvarko.cz
* @created 2008-06-15
* @updated 2010-01-23
* @link http://jscolor.com
*/
function walkScope(scope) {
function processLevel(scope, idCache) {
if (scope == null)
return null;
if (idCache.indexOf(scope.$id) >= 0)
return null;
idCache.push(scope.$id);
@rinukkusu
rinukkusu / app_component.dart
Created December 30, 2016 19:21
Dart Routing
@Component(...)
@RouteConfig(const [
const Route( path: '/', name: 'Home', component: HomeView ),
const Route( path: '/search', name: 'Search', component: SearchView ),
const Route( path: '/error', name: 'Error', component: ErrorView ),
const Route( path: '/shop/...', name: 'Shop', component: ShopView ),
const Route( path: '/:slug', name: 'Page', component: PageView ),
])
class AppComponent {
// ...
import 'dart:html';
import 'package:angular/angular.dart';
import 'package:angular_components/src/components/glyph/glyph.dart';
@Component(
selector: 'toggleMenu',
directives: const [GlyphComponent],
template: r'''
<glyph [icon]="icon" size="x-large"></glyph>{{text}}
''',
class Consumer {
String name;
String connectionName;
String consumerTag;
bool isAckRequired;
bool isExclusive;
Consumer.fromJson(Map<String, dynamic> map) {
name = map["name"];
connectionName = map["connectionName"];
@rinukkusu
rinukkusu / main.dart
Created May 12, 2018 16:03
QuerySelectorTest
import 'dart:html';
void main() {
var elm = querySelector('html');
elm.style.backgroundColor = '#ff0000';
}
@rinukkusu
rinukkusu / main.dart
Created June 28, 2018 11:27
inferred type
void main() {
List<int> list = new List();
list.add("c");
list.add(2);
print(list);
}
@rinukkusu
rinukkusu / index.html
Created November 21, 2018 13:54
Interop Example
<script>
window.callback = null;
function callCallback(e) {
callback(e);
}
</script>
<button onclick="callCallback()"></button>
#!/bin/bash
USER="root"
PASSWORD=""
OUTPUT="/tmp/dbbackup/"
DATE=`date +%Y-%m-%d_%H-%M`
FOLDER="$OUTPUT"
rm -rf "$FOLDER"
mkdir "$OUTPUT"