#Geeky Pod
##Checkin
####Python
- Chaiwat Suttipongsakul
- Chokchai Phatharamalai <<
- Airmee Chanita Anuwong
- Pam Suebvisai
- Edkung Foo
#Geeky Pod
##Checkin
####Python
#atom-perspective() { | |
@viewing-distance: 12in; | |
@rotation: 20deg; | |
.tree-view-scroller { | |
transform: translateY(-10vh) perspective(@viewing-distance) rotateY(@rotation); | |
padding-top: 12vh; | |
padding-bottom: 12vh; | |
transform-origin: left; |
//------------------------------------------ | |
// Step 0. Boilerplate to get the paket.exe tool | |
open System | |
open System.IO | |
Environment.CurrentDirectory <- __SOURCE_DIRECTORY__ | |
if not (File.Exists "paket.exe") then | |
let url = "http://fsprojects.github.io/Paket/stable" |
package com.someco.cmis.examples; | |
import java.io.ByteArrayInputStream; | |
import java.io.InputStream; | |
import java.math.BigInteger; | |
import java.util.HashMap; | |
import java.util.List; | |
import java.util.Map; | |
import org.apache.chemistry.opencmis.client.api.Document; |
List<Object> aspects = doc.getProperty("cmis:secondaryObjectTypeIds").getValues(); | |
if (!aspects.contains("P:cm:geographic")) { | |
aspects.add("P:cm:geographic"); | |
HashMap<String, Object> props = new HashMap<String, Object>(); | |
props.put("cmis:secondaryObjectTypeIds", aspects); | |
doc.updateProperties(props); | |
System.out.println("Added aspect"); | |
} else { | |
System.out.println("Doc already had aspect"); | |
} |
The count of contributions (summary of Pull Requests, opened issues and commits) to public repos at GitHub.com from Wed, 29 Jul 2015 01:52:41 GMT till Fri, 29 Jul 2016 01:52:41 GMT.
Only first 1000 GitHub users according to the count of followers are taken. This is because of limitations of GitHub search. Sorting algo in pseudocode:
githubUsers
.filter(user => user.followers > 6)
using System; | |
using System.Collections.Generic; | |
public static class ExtensionMethods | |
{ | |
public static IEnumerable<T> ToList<T>(this T value) { | |
yield return value; | |
} | |
public static IEnumerable<U> SelectMany<T, U>(this IEnumerable<T> m, Func<T, IEnumerable<U>> k) |
module Tuple2 | |
let replicate x = x, x | |
let curry f x y = f (x, y) | |
let uncurry f (x, y) = f x y | |
let swap (x, y) = (y, x) |
Functional programming gets a bad wrap about being too hard for mere mortals to comprehend. This is nonsense. The concepts are actually quite simple to grasp.
The jargon is the hardest part. A lot of that vocabulary comes from a specialized field of mathematical study called category theory (with a liberal sprinkling of type theory and abstract algebra). This sounds a lot scarier than it is. You can do this!
All examples using ES6 syntax. wrap (foo) => bar
means:
function wrap (foo) {