Skip to content

Instantly share code, notes, and snippets.

View Solido's full-sized avatar
💙

Robert Felker Solido

💙
View GitHub Profile
@brandonb927
brandonb927 / osx-for-hackers.sh
Last active May 29, 2024 14:52
OSX for Hackers: Yosemite/El Capitan Edition. This script tries not to be *too* opinionated and any major changes to your system require a prompt. You've been warned.
#!/bin/sh
###
# SOME COMMANDS WILL NOT WORK ON macOS (Sierra or newer)
# For Sierra or newer, see https://github.com/mathiasbynens/dotfiles/blob/master/.macos
###
# Alot of these configs have been taken from the various places
# on the web, most from here
# https://github.com/mathiasbynens/dotfiles/blob/5b3c8418ed42d93af2e647dc9d122f25cc034871/.osx
@pjsvis
pjsvis / gist:6210002
Last active November 13, 2020 00:56
Angular directive for jQuery sparkline
// Requires jQuery from http://jquery.com/
// and jQuerySparklines from http://omnipotent.net/jquery.sparkline
// AngularJS directives for jquery sparkline
angular.module('sparkline', []);
angular.module('sparkline')
.directive('jqSparkline', [function () {
'use strict';
return {
@narirou
narirou / gulpfile.js
Last active May 4, 2020 14:02
gulpfile.js : auto restart & livereload the server with gulp
'use strict';
var gulp = require( 'gulp' ),
gutil = require( 'gulp-util' ),
fork = require( 'child_process' ).fork,
tinyLr = require( 'tiny-lr' ),
async = require( 'async' );
var dirs = {
app: [
package main
import (
"net/http"
"database/sql"
"fmt"
"log"
"os"
)
@deltaepsilon
deltaepsilon / rxjs-firebase-demo.js
Created September 8, 2016 17:44
Demo RxJs integration with Firebase
var Rx = require('rxjs');
var firebase = require('firebase');
firebase.initializeApp({
"databaseURL": "https://quiver-two.firebaseio.com",
"serviceAccount": "./service-account.json"
});
var ref = firebase.database().ref('rxjs-demo');
Rx.Observable.fromPromise(ref.remove())
.map(function () {
@fabiomsr
fabiomsr / app_bar.dart
Last active December 9, 2018 16:16
Flutter DecoratedBox
DecoratedBox(
decoration: BoxDecoration(
gradient: LinearGradient(
begin: const FractionalOffset(0.5, 0.6),
end: const FractionalOffset(0.5, 1.0),
colors: <Color>[const Color(0x00000000), const Color(0x70000000)]
)
)
)
@branflake2267
branflake2267 / main.dart
Last active February 20, 2024 08:57
Flutter - The Hero Animation - YouTube episode source code...
import 'package:flutter/material.dart';
void main() {
runApp(new MyApp());
}
/// Root MaterialApp
class MyApp extends StatelessWidget {
var _routes = <String, WidgetBuilder>{
"/anotherPage": (BuildContext context) =>
@branflake2267
branflake2267 / main.dart
Last active April 6, 2018 16:35
Flutter - The Infinite ListView - YouTube episode source code...
import 'dart:async';
import 'package:MyListViewApplication/models.dart';
import 'package:flutter/material.dart';
void main() {
runApp(new MyApp());
}
final ThemeData _themeData = new ThemeData(
primaryColor: Colors.blue,
@matanlurey
matanlurey / BowlingKtTest.kt
Created May 11, 2017 01:12 — forked from miquelbeltran/BowlingKtTest.kt
Bowling Kata Dart vs Kotlin
import org.junit.jupiter.api.Assertions.*
import org.junit.jupiter.api.Test
internal class BowlingKtTest {
@Test
fun `score is 0 when the player did not knock down any pins`() {
assertEquals(0, Array(20, { 0 }).toList().score())
}
@Test
@slightfoot
slightfoot / squircle.dart
Last active October 10, 2023 15:50
Flutter Squircle Shape
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return new MaterialApp(
title: 'Squircle',
home: new Scaffold(