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 / Senior_android.md
Last active August 29, 2015 14:23
Position Senior Android Developer

Description

Ninjaas is a mobile internet company. We create mobile products which are mainly based on mCommerce, Communication, Media and Smart city infrastructure. We are the first internet company from india and all of our team are Ninjas. We expect in-depth understand and quick delivery will solve many problems in the world.

Responsibilities

  • Lead and mentor Android team
  • Have ownership over the Android app from user-interface to the networking stack
  • Ship reliable software through test automation and code reviews
  • Fix bugs and improve application performance
@iraycd
iraycd / horrible-storyboard.md
Created June 10, 2015 14:20
Bad Experiences with Storyboard.

Interestingly Apple doesn't even use Storyboards in their recently open-sourced ResearchKit as [Peter Steinberger has noticed][1] (under the subheading "Interface Builder").

As expected, Apple keeps improving Storyboards and Xcode. Some of the points that applied to iOS 7 and below don't apply to iOS 8 anymore (and are now marked as such). So while Storyboards inherently still have flaws, I revise my advice from don't use to selectively use where it makes sense.

Even now that iOS 7 is out, I would advise against to use caution when deciding whether to use Storyboards. Here are my reasons:

  • Storyboards fail at runtime, not at compile time: You have a typo in a segue name or connected it wrong in your storyboard? It will blow up at runtime. You use a custom UIViewController subclass that doesn't exist anymore in your storyboard? It will blow up at runtime. If you do such things in code, you will catch them early on, during compile time. Update: My new tool **[StoryboardLin
@iraycd
iraycd / xib-merging.md
Last active August 29, 2015 14:22
Interface Builder (XIB) or Code when merging in a team environment

Was merging a consideration for going all code? Do you use XIBs just for layout and code the rest? Or, have you had any luck merging XIBs and over time you just get better at manually reading?

EDIT: My current approach is using it for strict layout (what it's really good at and painful to code) and setting all the options and data via code. I find code much easier to merge but laying out controls in code is tedious. Thoughts?

Was merging a consideration for going all code?

Yes, No, and "Portions Of". It depends on things like:

  • The people involved
  • the complexity of the UI
@iraycd
iraycd / xib-storyboard.md
Last active January 26, 2022 07:46
Storyboard Vs XIB

It is not to tell which one is the best. because which one is good to tell based on team requirement.

if your team have single developer its good for storyboard working less consumption time.either more number of developers use xib because it is not easily to merging the module/tasks

[xcode-using-storyboards-and-xibs-versus-creating-views-programmatically][1]

#Using XIBs

Advantages:

@iraycd
iraycd / Readme.md
Created April 18, 2015 10:42
Python, Wheezy, uWSIG and HTTPS. SSL and TLS

In simple about SSL

  1. You should have a little knowledge about SSL/TLS.
    • In simple what it does is creates HTTPS, HTTPS helps you in securing the request and response.
    • It's a must have feature on any website. Something like when you are asking for username and password.
    • Why HTTPS?
      • HTTPS kicks man-in-the-middle in the butt, much more difficult to pull off.
      • Trust - People see HTTPS as diamonds.
      • SEO - Google fucking loves HTTPS.
  2. OpenSSL it's you create an SSL, you can later submit the certificate.
@iraycd
iraycd / key-store-validation.java
Created April 9, 2015 22:13
Key Store Validation
try {
PackageInfo info = getPackageManager().getPackageInfo(
"com.facebook.samples.hellofacebook",
PackageManager.GET_SIGNATURES);
for (Signature signature : info.signatures) {
MessageDigest md = MessageDigest.getInstance("SHA");
md.update(signature.toByteArray());
Log.d("KeyHash:", Base64.encodeToString(md.digest(), Base64.DEFAULT));
}
} catch (NameNotFoundException e) {
@iraycd
iraycd / simple_https.py
Created April 9, 2015 20:00
Simple HTTPS
import BaseHTTPServer, SimpleHTTPServer
import ssl
httpd = BaseHTTPServer.HTTPServer(('localhost', 4443), SimpleHTTPServer.SimpleHTTPRequestHandler)
httpd.socket = ssl.wrap_socket (httpd.socket, certfile='path/to/localhost.pem', server_side=True)
httpd.serve_forever()
@iraycd
iraycd / indianStates.js
Created April 6, 2015 12:11
All the indian states and union territories in list. JS list for indian states. Programming way.
var allStates = "Andaman and Nicobar Islands,\
Andhra Pradesh,\
Arunachal Pradesh,\
Assam Dispur,\
Bihar,\
Chandigarh,\
Chhattisgarh,\
Dadra and Nagar Haveli,\
Daman and Diu,\
Delhi,\

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

@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