I hereby claim:
- I am iheanyi on github.
- I am iheanyi (https://keybase.io/iheanyi) on keybase.
- I have a public key whose fingerprint is CDF6 00AF E53F 0CD3 D00D FFC1 569F 4E58 2B88 6B2E
To claim this, I am signing this object:
| int switchState = 0; | |
| void setup() { | |
| switchState = digitalRead(2); | |
| } | |
| void loop() { | |
| pinMode(3, OUTPUT); |
| [5] pry(main)> Professor.reset_counters(4, :sections) | |
| Professor Load (1.1ms) SELECT "professors".* FROM "professors" WHERE "professors"."id" = $1 LIMIT 1 [["id", 4]] | |
| (0.4ms) SELECT COUNT(*) FROM "sections" WHERE "sections"."professor_id" = $1 [["professor_id", 4]] | |
| (0.7ms) UPDATE "professors" SET "courses_count" = 12 WHERE "professors"."id" = 4 | |
| => true | |
| # Notice how it is updating the Courses Count, when I want this to be sections_count updated. :/ |
| buildscript { | |
| repositories { | |
| mavenCentral() | |
| } | |
| dependencies { | |
| classpath 'com.android.tools.build:gradle:0.12.+' | |
| } | |
| } | |
| apply plugin: 'android' |
| Verifying that +iheanyi is my Bitcoin username. You can send me #bitcoin here: https://onename.io/iheanyi |
I hereby claim:
To claim this, I am signing this object:
| from geventwebsocket.handler import WebSocketHandler | |
| from gevent.pywsgi import WSGIServer | |
| from flask import Flask, request, render_template | |
| app = Flask(__name__) | |
| @app.route('/') | |
| def index(): | |
| return render_template('index.html') |
| cpps = $(wildcard *.cpp */*.cpp) | |
| objs = $(cpps:.cpp=.o) | |
| deps = $(cpps:.cpp=.d) | |
| CPPFLAGS = -I include/ -g -std=c++11 -Wall -Wextra -pedantic -Werror | |
| all: executable | |
| %.d: %.cpp %.o Makefile | |
| g++ $(CPPFLAGS) -MM -MT $(<:.cpp=.o) $< -o $@ | |
| /* Preferably make this your container */ | |
| .target { | |
| -webkit-animation: fly-in-from-left .5s .5s ease both; | |
| -moz-animation: fly-in-from-left .5s 1s ease both; | |
| -o-animation: fly-in-from-left .5s 1s ease both; | |
| animation: fly-in-from-left .5s .5s ease both; | |
| -webkit-transform-origin: top left; | |
| transform-origin:top left; | |
| } |
| import java.util.ArrayList; | |
| import java.util.List; | |
| import android.content.Context; | |
| import android.graphics.Typeface; | |
| import android.view.LayoutInflater; | |
| import android.view.View; | |
| import android.view.ViewGroup; | |
| import android.widget.ArrayAdapter; | |
| import android.widget.TextView; |
| from django.db import models | |
| from django.core.management.base import BaseCommand, CommandError | |
| from IrishSchedule.models import Department, Course, Section | |
| import mechanize | |
| import requests | |
| from BeautifulSoup import BeautifulSoup | |
| #import os | |
| #os.environ['DJANGO_SETTINGS_MODULE'] = "myproject.settings" | |
| class Command(BaseCommand): |