Skip to content

Instantly share code, notes, and snippets.

@YonasBerhe
YonasBerhe / gist:67bea4410e6ce7f1aa57
Created January 13, 2016 10:16
Using template hello
<head>
<title>meteor-stripe-checkout</title>
</head>
<body>
<h1>Meteor Stripe checkout</h1>
{{> hello}}
</body>
@YonasBerhe
YonasBerhe / Chrome custom scrollbar.css
Created January 11, 2016 22:38 — forked from oumu/Chrome custom scrollbar.css
CSS : Chrome custom scrollbar
/*http://support.google.com/chrome/?hl=en*/
::-webkit-scrollbar {
height: 16px !important;
overflow: visible !important;
width: 16px !important;
}
::-webkit-scrollbar-thumb {
background: -webkit-linear-gradient(left, rgba(198,198,198,1) 0%,rgba(220,220,220,1) 100%) !important;
background-clip: padding-box !important;
@YonasBerhe
YonasBerhe / gist:a0e40f20eb539107ef4d
Created January 4, 2016 19:48
Adjacent JSX elements must be wra pped in an enclosing tag
import Radium from 'radium';
import React from 'react';
import ReactDOM from 'react-dom';
// import Radium, { Style } from 'radium';
var FakeUser = React.createClass({
getInitialState: function() {
return {firstname: '', lastName: '', gender: '', location: '', email: '', username: '', password: '', picture: ''};
angular.module('starter.services', ['ngResource'])
.factory('Session', function ($resource) {
return $resource('http://localhost:5000/sessions/sessionId');
});
// Ionic Starter App
// angular.module is a global place for creating, registering and retrieving Angular modules
// 'starter' is the name of this angular module example (also set in a <body> attribute in index.html)
// the 2nd parameter is an array of 'requires'
// 'starter.controllers' is found in controllers.js
angular.module('starter', ['ionic', 'starter.controllers'])
.run(function($ionicPlatform) {
$ionicPlatform.ready(function() {
angular.module('starter.controllers', ['starter.services'])
.controller('SessionCtrl', function ($scope, Session) {
scope.sessions = Session.query();
})
.controller('AppCtrl', function($scope, $ionicModal, $timeout) {
// With the new view caching in Ionic, Controllers are only called
@YonasBerhe
YonasBerhe / gist:ce2fea747650ee7d9d5c
Created December 18, 2015 01:52
Hoisting issue using radium
import Radium from 'radium';
import React from 'react';
import ReactDOM from 'react-dom';
// import Radium, { Style } from 'radium';
var FakeUser = React.createClass({
getInitialState: function() {
return {firstname: '', lastName: '', gender: '', location: '', email: '', username: '', password: '', picture: ''};
sanoy 9534 1.3 0.9 3567764 37320 ?? S Fri04PM 18:22.67 /Applications/Atom.app/Contents/Frameworks/Atom Helper.app/Contents/MacOS/Atom Helper --type=renderer --js-flags=--harmony --no-sandbox --enable-deferred-image-decoding --lang=English --node-integration=true --subpixel-font-scaling=false --enable-pinch-virtual-viewport --enable-delegated-renderer --num-raster-threads=2 --use-image-texture-target=3553 --channel=9528.1.1824015249
sanoy 14886 1.2 0.0 2459396 700 s004 S+ 8:24PM 0:00.01 grep node
sanoy 10783 0.0 0.1 3457860 3512 ?? U Sat12AM 0:12.13 /Applications/Atom.app/Contents/Frameworks/Atom Helper.app/Contents/MacOS/Atom Helper --type=renderer --js-flags=--harmony --no-sandbox --enable-deferred-image-decoding --lang=English --node-integration=true --subpixel-font-scaling=false --enable-pinch-virtual-viewport --enable-delegated-renderer --num-raster-threads=2 --use-image-texture-target=3553 --channel=9528.2.617854704
<iframe height="517" allowTransparency="true" frameborder="0" scrolling="no" style="width:100%;border:none" src="https://yonasberhe.wufoo.com/embed/z1lcogns13wonmj/"><a href="https://yonasberhe.wufoo.com/forms/z1lcogns13wonmj/">Fill out my Wufoo form!</a>
</iframe>
<div id="wuf-adv" style="font-family:inherit;font-size: small;color:#a7a7a7;text-align:center;display:block;"><span class="notranslate">HTML Forms powered by <a href="http://www.wufoo.com">Wufoo</a>.</span>
</div>
@YonasBerhe
YonasBerhe / The Technical Interview Cheat Sheet.md
Last active September 2, 2015 02:19 — forked from tsiege/The Technical Interview Cheat Sheet.md
This is my technical interview cheat sheet. Feel free to fork it or do whatever you want with it. PLEASE let me know if there are any errors or if anything crucial is missing. I will add more links soon.

Studying for a Tech Interview Sucks, so Here's a Cheat Sheet to Help

This list is meant to be a both a quick guide and reference for further research into these topics. It's basically a summary of that comp sci course you never took or forgot about, so there's no way it can cover everything in depth. It also will be available as a gist on Github for everyone to edit and add to.

Data Structure Basics

###Array ####Definition:

  • Stores data elements based on an sequential, most commonly 0 based, index.
  • Based on tuples from set theory.