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
| - name: "expertise" | |
| label: "Expertise" | |
| folder: "src/pages/expertise" | |
| create: true | |
| fields: | |
| - {label: "Kind", name: kind, widget: hidden, default: "expertise"} | |
| - {label: "Title", name: title, widget: string} | |
| - {label: "Image", name: image, widget: image} | |
| - name: "experts" |
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
| import React, { Component } from 'react'; | |
| import { | |
| StyleSheet, | |
| View, | |
| ListView, | |
| Text, | |
| Dimensions | |
| } from 'react-native'; | |
| const { width, height } = Dimensions.get('window'); |
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
| $camphor300:'d09GMgABAAAAAQ5UABIAAAAEn0QAAQ3tAAEZmQAAAAAAAAAAAAAAAAAAAAAAAAAAG4SkahzOKgZgFotgAIosCCIJgnMRCAqLlgCKvTwBNgIkA5lwE4GnDguZdAAEIAW7bwcgDHJb0WS0WUXZkokWaBHx4wKbY7TigANIU/t980QCGzI/IkCsdbqJZwY1ZOgWDngIamw3I43435Dd+zJ1kNmKVp/DvXNAwaNm//////////////////+/NZkMZ5cAl0CpbZ3oiwloFA5GyIWNzOYVLt1bpXPX+pABI2fo5rMZpgVYIzYqgxt92ajECqUKh2G9gaOCVRC23VSRVypHfbvb7wYcwEM25WArF0esm1yKzDixrJRdcBGtcpBZTFbFbIl8LIU4gWOnEdSITqkoGrHWJ8ywn9eVFWWk3lC6m07qp1TXntHaWp6ekYHLrFoyzOXYiQnn2kWX2zqMaFBTca25vHKndPhJV66HRhQzL9lB3OT20KGTXuFHu62wm1qzoV/iTnaiLdc8o/D7B+1O94BrjSE3cia6U1A5XNp0kHmUj8IMBaeiGaiNJV7b1csb0bq8EWYo2h1TuipR+7hmYjxeZsonGLNcmgsKp5EUDCEj9SvRyxX2uMUNfINmfNqglBYNNtjtNmdwWV2ly4uQKheyDyka2RTRoQ3IEfs+0BNcGJ4Z5AnmHNpFbCKW5PsXkAzJ6VVzzVMo0fwIUpQQT67itTNRE946/NxDashl9KuAFUbZ6yW91vObh+WAMZ1mQ1J4wotF6KXHuo65X6wSz406hW/T6XZMf/6W+HGYUxCDfhyjPaoMGcWccmbYM/H35NdHTOd79Jg0ho/BDBvRy2vcg8pHsv07UYiKrDFeqzL0Qk7qCkXLuukl2EKuR3xS6VtsLEaT0BfWoDYoQ1YvEjjT729XNMYoCX3j+2ApedBG/UHLOJ7AAnfPSqdmmePsY+522MpfPaf7kf6fIJMn0/4SE6PmuI3yjyeGjWn+1qj/ukf09DE |
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
| LocaleConfig.locales['es'] = { | |
| monthNames: ['Enero','Febrero','Marzo','Abril','Mayo','Junio','Julio','Agosto','Septiembre','Octubre','Noviembre','Diciembre'], | |
| monthNamesShort: ['Ene.','Feb.','Mar','Abr','Mayo','Jun','Jul','Ago','Sep','Oct','Nov','Dic'], | |
| dayNames: ['Domingo','Lunes','Martes','Miércoles','Jueves','Viernes','Sábado'], | |
| dayNamesShort: ['D','L','M','M','J','V','S'] | |
| }; |
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
| os::{ ~ }-> curl -I "http://pbs.twimg.com/profile_images/378800000005095252/6fd76c3bd2acb91b6469ba1f35b3ea46_bigger.jpeg" | |
| curl: (7) couldn't connect to host |
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
| # | |
| # This file should be in .../cookbooks/database/templates/default/database.yml.erb | |
| # | |
| <%= @environment %>: | |
| adapter: <%= @adapter %> | |
| database: <%= @database %> | |
| username: <%= @username %> | |
| password: <%= @password %> | |
| host: <%= @host %> |
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
| 1.9.2p320 :001 > string = "c73157:x:7080:dputnam,dromanen,asantani,adesilv1,ryaryy,rgorreap,ubenesch,zng1,jswanner,npachec2,avalenc7,bmckeand,apewther,mpernabe,dott,bernst,tcoffey1,gpaz,ywun,mweaver3,jsteele,pkassian,psakhark,jsotobus,bkrantzi,crosales,jmencha1" | |
| => "c73157:x:7080:dputnam,dromanen,asantani,adesilv1,ryaryy,rgorreap,ubenesch,zng1,jswanner,npachec2,avalenc7,bmckeand,apewther,mpernabe,dott,bernst,tcoffey1,gpaz,ywun,mweaver3,jsteele,pkassian,psakhark,jsotobus,bkrantzi,crosales,jmencha1" | |
| 1.9.2p320 :002 > last_colon = string.rindex(/:/) | |
| => 13 | |
| 1.9.2p320 :003 > string[last_colon + 1, string.length].split(',') | |
| => ["dputnam", "dromanen", "asantani", "adesilv1", "ryaryy", "rgorreap", "ubenesch", "zng1", "jswanner", "npachec2", "avalenc7", "bmckeand", "apewther", "mpernabe", "dott", "bernst", "tcoffey1", "gpaz", "ywun", "mweaver3", "jsteele", "pkassian", "psakhark", "jsotobus", "bkrantzi", "crosales", "jmencha1"] | |
| 1.9.2p320 :004 > |
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
| 1.9.2p320 :006 > "\342\224\234\302\252\342\224\234\302\251\342\224\234\303\221".encode('UTF-8') | |
| => "├ª├©├Ñ" |
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
| 1.8.7 :085 > ic = Iconv.new('UTF-8', 'CP850') | |
| => #<Iconv:0x10dd4a7e8> | |
| 1.8.7 :086 > ic.iconv("æøå") | |
| => "\342\224\234\302\252\342\224\234\302\251\342\224\234\303\221" |
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
| 1.8.7 :064 > obj = [34773, 28566, 31509, 24366, 32891, 32230, 29208, 24501, 32027, 31359, 27217, 31430, 28049, 35981, 34471, 33724, 30934, 35097, 29596, 31871, 31603, 33786, 33399] | |
| => [34773, 28566, 31509, 24366, 32891, 32230, 29208, 24501, 32027, 31359, 27217, 31430, 28049, 35981, 34471, 33724, 30934, 35097, 29596, 31871, 31603, 33786, 33399] | |
| 1.8.7 :065 > total = 718588 => 718588 | |
| 1.8.7 :066 > list = obj.map{ | x | "%4f" % (1 - (BigDecimal("#{x}")/BigDecimal("#{total}"))) } | |
| => ["0.951609", "0.960247", "0.956152", "0.966092", "0.954228", "0.955148", "0.959354", "0.965904", "0.955431", "0.956360", "0.962124", "0.956261", "0.960967", "0.949928", "0.952030", "0.953069", "0.956952", "0.951158", "0.958814", "0.955648", "0.956021", "0.952983", "0.953521"] |
NewerOlder