Skip to content

Instantly share code, notes, and snippets.

View iraycd's full-sized avatar
🎯
Focusing

Ray Ch iraycd

🎯
Focusing
View GitHub Profile
@iraycd
iraycd / pricing.html
Created March 15, 2014 19:22
Pricing
<link href='http://fonts.googleapis.com/css?family=Lato:100,300,400,900|Ubuntu:400' rel='stylesheet' type='text/css'>
<div class="plans">
<div class="free personal">
<div class="title">Free</div>
<div class="price">$0/month</div>
<div class="table">
<table>
<tr>
<td>&infin; Public Blocks</td>

A lot of these are outright stolen from Edward O'Campo-Gooding's list of questions. I really like his list.

I'm having some trouble paring this down to a manageable list of questions -- I realistically want to know all of these things before starting to work at a company, but it's a lot to ask all at once. My current game plan is to pick 6 before an interview and ask those.

I'd love comments and suggestions about any of these.

I've found questions like "do you have smart people? Can I learn a lot at your company?" to be basically totally useless -- everybody will say "yeah, definitely!" and it's hard to learn anything from them. So I'm trying to make all of these questions pretty concrete -- if a team doesn't have an issue tracker, they don't have an issue tracker.

I'm also mostly not asking about principles, but the way things are -- not "do you think code review is important?", but "Does all code get reviewed?".

@iraycd
iraycd / jntu.js
Last active March 22, 2021 12:19
JNTU Shortcut Code.
var results;
elec = $("#forward").attr("onclick").split("'");
elec = elec[elec.length-2];
ht = $("#htno").val();
$("#forward").attr("onclick","gameon()");
gameon = function(){
console.log("Process Begins");
$.ajax({
description "Upstart script to run a nodejs app as a service"
author "Louis Chatriot"
env NODE_BIN=/usr/local/bin/node
env APP_DIR=/path/to/app/dir
env SCRIPT_FILE="scriptfile.js" # Entry point for the nodejs app
env LOG_FILE=/path/to/logfile.log
env RUN_AS="anyuser" # Upstart can only be run nicely as root, need to drop privileges
env SERVER_ENV="anything" # Usual apps can be run in different environments (development, test, production ...)
# I typically use the environment variable NODE_ENV (see below)
Verifying that +iraycd is my Bitcoin username. You can send me #bitcoin here: https://onename.io/iraycd
@iraycd
iraycd / LatLong.java
Created November 11, 2014 11:03
Android Location with GPS.
package com.location.model;
public class LatLong {
private double lat, lng;
public LatLong() {
}
public double getLat() {
@iraycd
iraycd / header.php
Created November 15, 2014 18:08
Update Header Woocommerce Open Graph
<?php if ( is_home() ) { // If on the homepage ?>
<!--/ Open Graph for Homepage /-->
<meta property="og:title" content="<?php echo get_bloginfo(strip_tags('name')) ?>" />
<meta property="og:type" content="website" />
<meta property="og:url" content="<?php echo home_url() ?>" />
<meta property="og:description" content="<?php echo get_bloginfo (strip_tags('description')) ?>" />
<meta property="og:site_name" content="<?php echo get_bloginfo(strip_tags('name')) ?>" />
<meta property="og:image" content="http://unglove.me/path-to-thumbnail-image.jpg" />
<?php } ?>
@iraycd
iraycd / admin.py
Created February 5, 2015 19:40
Wheezy Admin Handler
from wheezy.web.authorization import authorize
from wheezy.web.handlers import BaseHandler
class AdminHandler(BaseHandler):
@authorize(roles=('admin',))
def __call__(self):
method = self.request.method
if method == 'GET':
@iraycd
iraycd / jobs.md
Last active August 29, 2015 14:15
Qualification in Ninjaas by position.

##Internship : Making an app

  • If you already have a decent enough app. You are quilified. But see the below coditions.
  • Should have a GitHub or Bitbucket Profile. Understand basics of GIT.
  • Basics knowledge about how server, cloud and mobile work.
  • You should know one of these technology
    • Node.js, Python(Django) or Go.
    • Android
    • iOS Developers
    • Go Lang

Start your rethinkdb instance with this flag: --bind all (or bind=all in the configuration file for your instance)

Block external access to the web UI with these two commands: sudo iptables -A INPUT -i eth0 -p tcp --dport 8080 -j DROP sudo iptables -I INPUT -i eth0 -s 127.0.0.1 -p tcp --dport 8080 -j ACCEPT

Install nginx: sudo apt-get install nginx