Revealed by Facebook at F8 2010, EdgeRank is the algorithm Facebook uses to determine what pieces of News Feed content are most important or relevant to a user. Facebook calculates the EdgeRank for every piece of News Feed content, which consists of three factors: de, how recently the content was created (newer content is favored); we, the weight for the type of content (more engaging types of content like photos and videos are favored); and ue, the measure of the affinity between the user and the owner of the content (more affinity is favored).
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | # goes in folder that holds symlinks to project files (/home/jim/sites/dev) | |
| RewriteEngine on | |
| RewriteCond %{HTTP_HOST} ^([^.]+)\.local.dev | |
| RewriteCond %1::%{REQUEST_URI} !^(.*?)::/\1/ | |
| RewriteRule ^(.*)$ /%1/$1 [L] | |
| RewriteCond %{HTTP_HOST} ^([^.]+)\.dev\.local | |
| RewriteCond %1::%{REQUEST_URI} !^(.*?)::/\1/ | |
| RewriteRule ^(.*)$ /%1/$1 [L] | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | git log master..dev --pretty=format:"%Cgreen %m %h %Creset%s (%ae) %Cred%d%Creset" --left-right | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | package main | |
| import ( | |
| "fmt" | |
| "time" | |
| ) | |
| func main() { | |
| x := make([]chan bool, 10) | |
| for i := 0; i < 10; i++ { | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | { | |
| "auto_complete": false, | |
| "close_windows_when_empty": true, | |
| "color_scheme": "Packages/Theme - Tomorrow/Tomorrow-Night.tmTheme", | |
| "default_line_ending": "unix", | |
| "draw_white_space": "all", | |
| "font_face": "Monaco", | |
| "font_size": 12, | |
| "hot_exit": false, | |
| "ignored_packages": | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | <?php | |
| class MongoHelper | |
| { | |
| private static $servers = array(); | |
| public static function addServer($name, $host, $port = 27017) | |
| { | |
| self::$servers[$name] = "mongodb://{$host}:{$port}"; | |
| } | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | <?php | |
| function getIP() | |
| { | |
| return !empty($_SERVER['HTTP_X_FORWARDED_FOR'])? $_SERVER["HTTP_X_FORWARDED_FOR"] | |
| : ( | |
| !empty($_SERVER['REMOTE_ADDR'])? $_SERVER['REMOTE_ADDR'] | |
| : '' | |
| ); | |
| } | 
Free startup idea to anyone who wants it: fix the self-checkout lane at grocery/discount stores.
Here's four things that can use drastic improvement:
- Don't use bar codes to identify items. Grocery store shoppers drastically overestimate their own dexterity. Use RFID or something similar.
- Don't make users scan their discount card and then my credit card. Once I scan them both once, assume that those two cards are tied together until you see a different card. Better yet: let me use my smartphone for both.
- There should be absolutely zero lag or slowness. The fact that I can run a search on Google of the entire Internet in a tenth of the time it takes a self checkout machine to calculate change on a $20 bill is ridiculous.
- Don't print receipts. Just e-mail them.
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <title>Louddoor</title> | |
| </head> | |
| <body> | |
| <div id="container"> | |
| <div id="navbar"> | |
| <ul> | |
| <li>Link 1</li> | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | <?php | |
| // Example use | |
| require('flag.php'); | |
| Flag::boolFlag("all", "Whether or not to go back and get all 90 days worth of data", false); | |
| Flag::stringArg("jobID", "ID of the job", ""); | |
| Flag::stringArg("groupId", "ID of the group", ""); | |
| $backprop = Flag::lookup("all"); | |
| $job_name = Flag::lookupArg("job"); |